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

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

public class SimpleCollectionWrapper<T>
extends Object

Author:
Guillaume Porcher

Field Summary
protected  Collection<T> content
           
 
Constructor Summary
SimpleCollectionWrapper()
           
 
Method Summary
 Collection<T> getContent()
           
 List<T> getContentAsList()
           
 Set<T> getContentAsSet()
           
static
<T> SimpleCollectionWrapper<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

SimpleCollectionWrapper

public SimpleCollectionWrapper()
Method Detail

make

public static <T> SimpleCollectionWrapper<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.