Class MapSchema.MapWrapper<K,V>

java.lang.Object
io.protostuff.MapSchema.MapWrapper<K,V>
All Implemented Interfaces:
Map.Entry<K,V>
Enclosing class:
MapSchema<K,V>

public static final class MapSchema.MapWrapper<K,V> extends Object implements Map.Entry<K,V>
A Map.Entry w/c wraps a Map.
Author:
David Yu
  • Method Details

    • getKey

      public K getKey()
      The key is provided as the last arg of MapSchema.putValueFrom(Input, MapWrapper, Object).
      Specified by:
      getKey in interface Map.Entry<K,V>
    • getValue

      public V getValue()
      Gets the last value set.
      Specified by:
      getValue in interface Map.Entry<K,V>
    • setValue

      public V setValue(V value)
      Sets the new value and returns the old one. This method is useful for storage when deserializing cyclic object graphs.
      Specified by:
      setValue in interface Map.Entry<K,V>
    • put

      public void put(K key, V value)
      Puts the key-value entry.