org.apache.geronimo.gbean
Class SingleElementCollection<T>

java.lang.Object
  extended by org.apache.geronimo.gbean.SingleElementCollection<T>

public class SingleElementCollection<T>
extends Object

A wrapper around a reference collection to simulate a 0..1 reference


Constructor Summary
SingleElementCollection(Collection<T> collection)
           
SingleElementCollection(T element)
           
 
Method Summary
 T getElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleElementCollection

public SingleElementCollection(T element)

SingleElementCollection

public SingleElementCollection(Collection<T> collection)
Method Detail

getElement

public T getElement()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.