K - the key typeV - the value typepublic static class MVMap.Builder<K,V> extends java.lang.Object implements MVMap.MapBuilder<MVMap<K,V>,K,V>
| Modifier and Type | Field and Description |
|---|---|
protected DataType |
keyType |
protected DataType |
valueType |
| Constructor and Description |
|---|
Builder()
Create a new builder with the default key and value data types.
|
| Modifier and Type | Method and Description |
|---|---|
MVMap<K,V> |
create()
Create a new map of the given type.
|
DataType |
getKeyType() |
DataType |
getValueType() |
MVMap.Builder<K,V> |
keyType(DataType keyType)
Set the key data type.
|
MVMap.Builder<K,V> |
valueType(DataType valueType)
Set the value data type.
|
public Builder()
public MVMap.Builder<K,V> keyType(DataType keyType)
keyType - the key typepublic DataType getKeyType()
public DataType getValueType()
public MVMap.Builder<K,V> valueType(DataType valueType)
valueType - the value type