|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.functor.generator.BaseGenerator<E>
org.apache.commons.functor.generator.TransformedGenerator<I,E>
public class TransformedGenerator<I,E>
Generator that transforms the elements of another Generator.
| Constructor Summary | |
|---|---|
TransformedGenerator(Generator<? extends I> wrapped,
UnaryFunction<? super I,? extends E> func)
Create a new TransformedGenerator. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
protected Generator<? extends I> |
getWrappedGenerator()
Get the generator that is being wrapped. |
int |
hashCode()
|
void |
run(UnaryProcedure<? super E> proc)
Generators must implement this method. |
| Methods inherited from class org.apache.commons.functor.generator.BaseGenerator |
|---|
isStopped, stop, to, to, toCollection |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformedGenerator(Generator<? extends I> wrapped,
UnaryFunction<? super I,? extends E> func)
wrapped - Generator to transformfunc - UnaryFunction to apply to each element| Method Detail |
|---|
public void run(UnaryProcedure<? super E> proc)
proc - UnaryProcedure to runprotected Generator<? extends I> getWrappedGenerator()
getWrappedGenerator in class BaseGenerator<E>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||