T - Type of field valuespublic static interface Document.Field<T>
| Modifier and Type | Method and Description | 
|---|---|
| Document.Field<T> | add(java.util.Collection<T> values)Add more values to the field. | 
| Document.Field<T> | add(T value)Add value to the field preserving any previously existing values. | 
| java.util.Collection<T> | get()Get all field values as immutable collection. | 
| T | getFirst()Get first value from the field. | 
| java.util.Set<java.lang.String> | getHints()Get all hints for this field. | 
| java.lang.String | getName()Get field name. | 
| Document.Field<T> | hint(java.lang.String... hint)Add hint value to the field. | 
| Document.Field<T> | map(java.util.function.UnaryOperator<T> mapper)Apply mapping function to each field value. | 
| Document.Field<T> | multivalued()Set multivalued field hint. | 
| Document.Field<T> | operation(Operations operation)Set atomic update modifier hint. | 
| Document.Field<T> | set(java.util.Collection<T> values)Set new field values removing any previously existing values. | 
| Document.Field<T> | set(T value)Set new field value removing any previously existing values. | 
| Document.Field<T> | type(Types type)Set type hint. | 
java.lang.String getName()
Document.Field<T> set(java.util.Collection<T> values)
values - Collection of values to setDocument.Field<T> add(java.util.Collection<T> values)
values - List of values to addjava.util.Collection<T> get()
Document.Field<T> set(T value)
value - Value to setDocument.Field<T> add(T value)
value - Value to addDocument.Field<T> type(Types type)
type - Value to be set on type hintDocument.Field<T> operation(Operations operation)
operation - Operation modifier value to be set for the fieldDocument.Field<T> multivalued()
T getFirst()
Document.Field<T> map(java.util.function.UnaryOperator<T> mapper)
mapper - Mapping functionDocument.Field<T> hint(java.lang.String... hint)
hint - Hint valuejava.util.Set<java.lang.String> getHints()