Package io.protostuff
Class MapSchema.MapWrapper<K,V>
- java.lang.Object
-
- io.protostuff.MapSchema.MapWrapper<K,V>
-
-
Constructor Summary
Constructors Constructor Description MapWrapper(java.util.Map<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getKey()
The key is provided as the last arg ofMapSchema.putValueFrom(Input, MapWrapper, Object)
.V
getValue()
Gets the last value set.void
put(K key, V value)
Puts the key-value entry.V
setValue(V value)
Sets the new value and returns the old one.
-
-
-
Method Detail
-
getKey
public K getKey()
The key is provided as the last arg ofMapSchema.putValueFrom(Input, MapWrapper, Object)
.
-
getValue
public V getValue()
Gets the last value set.
-
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.
-
-