public class FieldBundle
extends java.lang.Object
Constructor and Description |
---|
FieldBundle(com.google.common.collect.ListMultimap<java.lang.String,java.lang.Object> fields) |
Modifier and Type | Method and Description |
---|---|
<T> T |
getValue(FieldDef<?,T> fieldDef)
Get a field's value based on the field definition.
|
public FieldBundle(com.google.common.collect.ListMultimap<java.lang.String,java.lang.Object> fields)
public <T> T getValue(FieldDef<?,T> fieldDef)
T
- Data type of the returned object based on the field definitionfieldDef
- the definition of the field of which the value should be retrieved. The field
must be stored and contained in the result set as specified by QueryOptions
.java.lang.IllegalArgumentException
- if the requested field is not stored or not present. This
check is only enforced on non-repeatable fields.