com.dyuproject.protostuff
Class MapSchema.MapWrapper<K,V>

java.lang.Object
  extended by com.dyuproject.protostuff.MapSchema.MapWrapper<K,V>
All Implemented Interfaces:
java.util.Map.Entry<K,V>
Enclosing class:
MapSchema<K,V>

public static final class MapSchema.MapWrapper<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>

A Map.Entry w/c wraps a Map.


Method Summary
 K getKey()
          The key is provided as the last arg of MapSchema.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Method Detail

getKey

public K getKey()
The key is provided as the last arg of MapSchema.putValueFrom(Input, MapWrapper, Object).

Specified by:
getKey in interface java.util.Map.Entry<K,V>

getValue

public V getValue()
Gets the last value set.

Specified by:
getValue in interface java.util.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 java.util.Map.Entry<K,V>

put

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



Copyright © 2009-2014. All Rights Reserved.