net.anotheria.moskito.central
Class HashMapAdapter<K,V>

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<HashMapAdapter.MyMapType<K,V>,HashMap<K,V>>
      extended by net.anotheria.moskito.central.HashMapAdapter<K,V>
Type Parameters:
K -
V -
Direct Known Subclasses:
Snapshot.MapAdapter

public class HashMapAdapter<K,V>
extends XmlAdapter<HashMapAdapter.MyMapType<K,V>,HashMap<K,V>>

Author:
dagafonov

Nested Class Summary
static class HashMapAdapter.MyMapEntryType<K,V>
          Wrapper for key - value pair.
static class HashMapAdapter.MyMapType<K,V>
          Wrapper for all entries that stored in hash map.
 
Constructor Summary
HashMapAdapter()
          Default construcotr.
 
Method Summary
 HashMapAdapter.MyMapType<K,V> marshal(HashMap<K,V> arg0)
           
 HashMap<K,V> unmarshal(HashMapAdapter.MyMapType<K,V> arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashMapAdapter

public HashMapAdapter()
Default construcotr.

Method Detail

marshal

public HashMapAdapter.MyMapType<K,V> marshal(HashMap<K,V> arg0)
Specified by:
marshal in class XmlAdapter<HashMapAdapter.MyMapType<K,V>,HashMap<K,V>>

unmarshal

public HashMap<K,V> unmarshal(HashMapAdapter.MyMapType<K,V> arg0)
Specified by:
unmarshal in class XmlAdapter<HashMapAdapter.MyMapType<K,V>,HashMap<K,V>>


Copyright © 2010-2013 anotheria.net. All Rights Reserved.