Class MarshallableMap<K,V>
java.lang.Object
org.infinispan.marshall.protostream.impl.MarshallableMap<K,V>
A wrapper for Maps of user objects whose key/value type is unknown until runtime.
- Since:
- 16.0
- Author:
- Ryan Emerson
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> MarshallableMap <K, V> get()static <K,V> Map <K, V> unwrap(MarshallableMap<K, V> wrapper)
-
Method Details
-
create
- Parameters:
map- theMapto be wrapped.- Returns:
- a new
MarshallableMapinstance containing the passed object if the object is not null, otherwise null.
-
unwrap
- Parameters:
wrapper- theMarshallableMapinstance to unwrap.- Returns:
- the wrapped
Mapor null if the provided wrapper does not exist.
-
get
-