org.msgpack.template
Class CollectionTemplate<E>

java.lang.Object
  extended by org.msgpack.template.AbstractTemplate<Collection<E>>
      extended by org.msgpack.template.CollectionTemplate<E>
All Implemented Interfaces:
Template<Collection<E>>

public class CollectionTemplate<E>
extends AbstractTemplate<Collection<E>>


Constructor Summary
CollectionTemplate(Template<E> elementTemplate)
           
 
Method Summary
 Collection<E> read(Unpacker u, Collection<E> to, boolean required)
           
 void write(Packer pk, Collection<E> 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

CollectionTemplate

public CollectionTemplate(Template<E> elementTemplate)
Method Detail

write

public void write(Packer pk,
                  Collection<E> target,
                  boolean required)
           throws IOException
Throws:
IOException

read

public Collection<E> read(Unpacker u,
                          Collection<E> to,
                          boolean required)
                   throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.