org.ow2.orchestra.facade.rest
Class CollectionWrapper<T>

java.lang.Object
  extended by org.ow2.orchestra.facade.rest.CollectionWrapper<T>

public class CollectionWrapper<T>
extends Object

Author:
Guillaume Porcher

Field Summary
protected  Collection<T> content
           
 
Constructor Summary
CollectionWrapper()
           
 
Method Summary
 Collection<T> getContent()
           
 List<T> getContentAsList()
           
 Set<T> getContentAsSet()
           
static
<T> CollectionWrapper<T>
make(Collection<T> source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected Collection<T> content
Constructor Detail

CollectionWrapper

public CollectionWrapper()
Method Detail

make

public static <T> CollectionWrapper<T> make(Collection<T> source)

getContent

public Collection<T> getContent()

getContentAsList

public List<T> getContentAsList()

getContentAsSet

public Set<T> getContentAsSet()


Copyright © 2011 OW2 Consortium. All Rights Reserved.