|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.molae.pipe.tree.LeafFilter<E>
public final class LeafFilter<E>
Filters all leafs of a tree defined by a
CompositionView
.
Method Summary | ||
---|---|---|
boolean |
evaluate(E input)
Checks if the specified object is a leaf of the given CompositionView. |
|
static
|
leafCollection(E base,
CompositionView<E> compositionView)
Provides a collection that contains only the leafs of a recursive collection. |
|
static Collection<Object> |
leafCollection(Object base)
Provides a collection that contains only the leafs of a recursive collection. |
|
static
|
leafIterator(E pObject,
CompositionView<E> pCompositionView)
Provides an iterator that returns only the leafs of a recursive collection. |
|
static Iterator<Object> |
leafIterator(Object pObject)
Provides an iterator that returns only the leafs of a recursive collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean evaluate(E input)
evaluate
in interface TypedPredicate<E>
input
- object to evaluate.
input
is a leaf of the
given CompositionViewpublic static <E> Iterator<E> leafIterator(E pObject, CompositionView<E> pCompositionView)
pObject
- the root object of the tree or
an iterator defining the topmost level of the treepCompositionView
- the compositionView to be used
public static Iterator<Object> leafIterator(Object pObject)
pObject
- the root object of the tree or
an iterator defining the topmost level of the tree
public static <E> Collection<E> leafCollection(E base, CompositionView<E> compositionView)
base
- the root object of the tree -
must not be an Iterator
.compositionView
- the compositionView to be used
public static Collection<Object> leafCollection(Object base)
base
- the root object of the tree -
must not be an Iterator
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |