K
- Map key typeV
- Map value typepublic class MapField<K,V> extends ComplexField<NavigableMap<K,V>>
Modifier and Type | Field and Description |
---|---|
static String |
KEY_FIELD_NAME |
static String |
VALUE_FIELD_NAME |
NAME_PATTERN
Modifier and Type | Method and Description |
---|---|
SimpleField<K> |
getKeyField()
Get the key field.
|
List<SimpleField<?>> |
getSubFields()
Get the sub-field(s) associated with this instance, ordered according to their meaning.
|
NavigableMap<K,V> |
getValue(Transaction tx,
ObjId id)
Get the value of this field in the given object.
|
SimpleField<V> |
getValueField()
Get the value field.
|
boolean |
hasDefaultValue(Transaction tx,
ObjId id)
Determine if this field in the specified object has its default value in the specified
Transaction . |
String |
toString() |
<R> R |
visit(FieldSwitch<R> target)
Apply visitor pattern.
|
getTypeToken
getName, getSchema, getStorageId
public static final String KEY_FIELD_NAME
public static final String VALUE_FIELD_NAME
public SimpleField<K> getKeyField()
public SimpleField<V> getValueField()
public List<SimpleField<?>> getSubFields()
ComplexField
getSubFields
in class ComplexField<NavigableMap<K,V>>
public NavigableMap<K,V> getValue(Transaction tx, ObjId id)
Field
getValue
in class Field<NavigableMap<K,V>>
tx
- transactionid
- object idpublic boolean hasDefaultValue(Transaction tx, ObjId id)
Field
Transaction
.hasDefaultValue
in class Field<NavigableMap<K,V>>
tx
- Transaction
containing field stateid
- object IDid
, otherwise falsepublic String toString()
toString
in class SchemaItem
public <R> R visit(FieldSwitch<R> target)
Field
visit
in class Field<NavigableMap<K,V>>
R
- visitor return typetarget
- target to invoketarget
corresponding to this instance's typeCopyright © 2022. All rights reserved.