public class ViewRow extends Object
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
id()
Returns the ID if present.
|
<T> Optional<T> |
keyAs(Class<T> target)
Decodes the key into the given target type if present.
|
<T> Optional<T> |
keyAs(TypeRef<T> target)
Decodes the key into the given target type if present.
|
String |
toString() |
<T> Optional<T> |
valueAs(Class<T> target)
Decodes the value into the given target type if present.
|
<T> Optional<T> |
valueAs(TypeRef<T> target)
Decodes the value into the given target type if present.
|
public <T> Optional<T> keyAs(Class<T> target)
T - the generic type to decode into.target - the target type.public <T> Optional<T> keyAs(TypeRef<T> target)
T - the generic type to decode into.target - the target type.public <T> Optional<T> valueAs(Class<T> target)
T - the generic type to decode into.target - the target type.public <T> Optional<T> valueAs(TypeRef<T> target)
T - the generic type to decode into.target - the target type.Copyright © 2020 Couchbase, Inc.. All rights reserved.