com.natpryce.makeiteasy
Class NewCollectionDonor<T extends Collection<E>,E>

java.lang.Object
  extended by com.natpryce.makeiteasy.NewCollectionDonor<T,E>
All Implemented Interfaces:
Donor<T>

public abstract class NewCollectionDonor<T extends Collection<E>,E>
extends Object
implements Donor<T>


Constructor Summary
NewCollectionDonor(Donor<? extends E>... elementDonors)
           
NewCollectionDonor(Iterable<? extends Donor<? extends E>> elementGivers)
           
 
Method Summary
protected abstract  T newCollection()
           
 T value()
          Donate the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewCollectionDonor

public NewCollectionDonor(Donor<? extends E>... elementDonors)

NewCollectionDonor

public NewCollectionDonor(Iterable<? extends Donor<? extends E>> elementGivers)
Method Detail

value

public T value()
Description copied from interface: Donor
Donate the value.

Specified by:
value in interface Donor<T extends Collection<E>>
Returns:
the value donated

newCollection

protected abstract T newCollection()


Copyright © 2010. All Rights Reserved.