public abstract class MapConfig<C extends MapConfig<C>> extends CachedPrimitiveConfig<C>
| Constructor and Description |
|---|
MapConfig() |
| Modifier and Type | Method and Description |
|---|---|
C |
addExtraType(Class<?> extraType)
Adds an extra serializable type.
|
List<Class<?>> |
getExtraTypes()
Returns the extra serializable types.
|
Class<?> |
getKeyType()
Returns the key type.
|
Class<?> |
getValueType()
Returns the value type.
|
boolean |
isCompatibleSerialization()
Returns whether compatible serialization is enabled.
|
boolean |
isRegistrationRequired()
Returns whether registration is required for serializable types.
|
C |
setCompatibleSerialization(boolean compatibleSerialization)
Sets whether compatible serialization is enabled.
|
C |
setExtraTypes(List<Class<?>> extraTypes)
Sets the extra serializable types.
|
C |
setKeyType(Class<?> keyType)
Sets the map key type.
|
C |
setRegistrationRequired(boolean registrationRequired)
Sets whether registration is required for serializable types.
|
C |
setValueType(Class<?> valueType)
Sets the map value type.
|
getCacheConfig, setCacheConfiggetName, getNamespaceConfig, getProtocolConfig, isReadOnly, setName, setNamespaceConfig, setProtocolConfig, setReadOnly, setReadOnlyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic Class<?> getKeyType()
public C setKeyType(Class<?> keyType)
keyType - the map key typepublic Class<?> getValueType()
public C setValueType(Class<?> valueType)
valueType - the map value typepublic List<Class<?>> getExtraTypes()
public C setExtraTypes(List<Class<?>> extraTypes)
extraTypes - the extra serializable typespublic C addExtraType(Class<?> extraType)
extraType - the extra type to addpublic boolean isRegistrationRequired()
public C setRegistrationRequired(boolean registrationRequired)
registrationRequired - whether registration is required for serializable typespublic boolean isCompatibleSerialization()
public C setCompatibleSerialization(boolean compatibleSerialization)
compatibleSerialization - whether compatible serialization is enabledCopyright © 2013–2018. All rights reserved.