Class MarshallableMap<K,V>

java.lang.Object
org.infinispan.marshall.protostream.impl.MarshallableMap<K,V>

@ProtoTypeId(21) public class MarshallableMap<K,V> extends Object
A wrapper for Maps of user objects whose key/value type is unknown until runtime.
Since:
16.0
Author:
Ryan Emerson
  • Method Details

    • create

      public static <K,V> MarshallableMap<K,V> create(Map<K,V> map)
      Parameters:
      map - the Map to be wrapped.
      Returns:
      a new MarshallableMap instance containing the passed object if the object is not null, otherwise null.
    • unwrap

      public static <K,V> Map<K,V> unwrap(MarshallableMap<K,V> wrapper)
      Parameters:
      wrapper - the MarshallableMap instance to unwrap.
      Returns:
      the wrapped Map or null if the provided wrapper does not exist.
    • get

      public Map<K,V> get()