public abstract class MapBuilder<B extends MapBuilder<B,C,P,K,V>,C extends MapConfig<C>,P extends SyncPrimitive,K,V> extends CachedPrimitiveBuilder<B,C,P>
| Modifier and Type | Method and Description |
|---|---|
B |
addExtraType(Class<?> extraType)
Adds an extra serializable type to the map.
|
B |
withCompatibleSerialization()
Sets whether compatible serialization is enabled.
|
B |
withCompatibleSerialization(boolean compatibleSerialization)
Sets whether compatible serialization is enabled.
|
B |
withExtraTypes(Class<?>... extraTypes)
Sets extra serializable types on the map.
|
B |
withKeyType(Class<?> keyType)
Sets the key type.
|
B |
withRegistrationRequired()
Sets whether registration is required for serializable types.
|
B |
withRegistrationRequired(boolean registrationRequired)
Sets whether registration is required for serializable types.
|
B |
withValueType(Class<?> valueType)
Sets the value type.
|
withCacheEnabled, withCacheEnabled, withCacheSizebuild, buildAsync, withReadOnly, withReadOnly, withSerializerpublic B withKeyType(Class<?> keyType)
keyType - the key typepublic B withValueType(Class<?> valueType)
valueType - the value typepublic B withExtraTypes(Class<?>... extraTypes)
extraTypes - the types to setpublic B addExtraType(Class<?> extraType)
extraType - the type to addpublic B withRegistrationRequired()
public B withRegistrationRequired(boolean registrationRequired)
registrationRequired - whether registration is required for serializable typespublic B withCompatibleSerialization()
public B withCompatibleSerialization(boolean compatibleSerialization)
compatibleSerialization - whether compatible serialization is enabledCopyright © 2013–2018. All rights reserved.