org.msgpack.template
Class MapTemplate<K,V>

java.lang.Object
  extended by org.msgpack.template.AbstractTemplate<Map<K,V>>
      extended by org.msgpack.template.MapTemplate<K,V>
All Implemented Interfaces:
Template<Map<K,V>>

public class MapTemplate<K,V>
extends AbstractTemplate<Map<K,V>>


Constructor Summary
MapTemplate(Template<K> keyTemplate, Template<V> valueTemplate)
           
 
Method Summary
 Map<K,V> read(Unpacker u, Map<K,V> to, boolean required)
           
 void write(Packer pk, Map<K,V> target, boolean required)
           
 
Methods inherited from class org.msgpack.template.AbstractTemplate
read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTemplate

public MapTemplate(Template<K> keyTemplate,
                   Template<V> valueTemplate)
Method Detail

write

public void write(Packer pk,
                  Map<K,V> target,
                  boolean required)
           throws IOException
Throws:
IOException

read

public Map<K,V> read(Unpacker u,
                     Map<K,V> to,
                     boolean required)
              throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.