|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Field value type.public interface FieldValues<T>
Interface for the fields of a search hit. All methods return non-null values.
| Field Summary |
|---|
| Fields inherited from interface net.conquiris.schema.FieldNameProperty |
|---|
NAME |
| Method Summary | |
|---|---|
T |
get()
Returns the required first value of the field. |
List<T> |
getAll()
Returns all the values of the field. |
Optional<T> |
getOptional()
Return the optional first value of the field. |
T |
or(T defaultValue)
Returns the field value of the field or the provided non-null value if the document contains no value for the field. |
T |
orNull()
Returns the field value of the field or null if the document contains no value for the
field. |
| Methods inherited from interface net.conquiris.schema.FieldNameProperty |
|---|
getName |
| Method Detail |
|---|
List<T> getAll()
Optional<T> getOptional()
T orNull()
null if the document contains no value for the
field.
T or(T defaultValue)
T get()
IllegalStateException - if the document contains no value for the field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||