|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.functor.generator.util.CollectionTransformer<E>
public class CollectionTransformer<E>
Transforms a generator into a collection. If a collection is not passed into the constructor an ArrayList will be returned from the transform method.
| Constructor Summary | |
|---|---|
CollectionTransformer()
Create a new CollectionTransformer. |
|
CollectionTransformer(java.util.Collection<? super E> toFill)
Create a new CollectionTransformer. |
|
| Method Summary | |
|---|---|
java.util.Collection<E> |
evaluate(Generator<? extends E> generator)
Evaluate this function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.functor.Functor |
|---|
equals, hashCode, toString |
| Constructor Detail |
|---|
public CollectionTransformer()
public CollectionTransformer(java.util.Collection<? super E> toFill)
toFill - Collection to fill| Method Detail |
|---|
public java.util.Collection<E> evaluate(Generator<? extends E> generator)
evaluate in interface UnaryFunction<Generator<? extends E>,java.util.Collection<? super E>>generator - the A object to evaluate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||