com.natpryce.makeiteasy
Class NewCollectionDonor<T extends Collection<E>,E>
java.lang.Object
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewCollectionDonor
public NewCollectionDonor(Donor<? extends E>... elementDonors)
NewCollectionDonor
public NewCollectionDonor(Iterable<? extends Donor<? extends E>> elementGivers)
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.