T
- - An element that is part of a List.H
- - In our case, an Entitypublic class CurrentAndFlatListHolder<T extends Named,H extends Hierarchical<H>> extends AbstractListHolder<T>
ListHolder
and Hierarchical
.
When a node is part of a hierarchy exposing a list of elements (example: an entity exposing a list of attributes),
this class enable you to retrieve in one single ListHolder
the elements that are scattered in the node's family tree.Constructor and Description |
---|
CurrentAndFlatListHolder(H node,
ListGetter<T,H> listGetter) |
CurrentAndFlatListHolder(H node,
ListGetter<T,H> listGetter,
|
Modifier and Type | Method and Description |
---|---|
SimpleListHolder<T> |
getFlatAbove()
Returns in a
ListHolder all the T elements that are present in the
current node's ancestors, up to the root node. |
SimpleListHolder<T> |
getFlatDown()
Returns in a
ListHolder all the T elements that are present in the
current node and all its descendants. |
SimpleListHolder<T> |
getFlatFull()
Returns in a
ListHolder all the T elements that are present in the
current node's root and all its descendants. |
SimpleListHolder<T> |
getFlatUp()
Returns in a
ListHolder all the T elements that are present in the
current node and its ancestors, up to the root node. |
SimpleListHolder<T> |
getUniqueFlatDown()
Returns in a
ListHolder all the T elements (without duplicates) that are present in the
current node and all its descendants. |
SimpleListHolder<T> |
getUniqueFlatFull()
Returns in a
ListHolder all the T elements (without duplicate) that are present in the
current node's root and all its descendants. |
SimpleListHolder<T> |
getUniqueFlatUp()
Returns in a
ListHolder all the T elements (without duplicate) that are present in the
current node and its ancestors, up to the root node. |
except, getAsTwoLists, getFirst, getList, getSize, getSubList, getSubListSize, isEmpty, isNotEmpty
public CurrentAndFlatListHolder(H node, ListGetter<T,H> listGetter)
public CurrentAndFlatListHolder(H node, ListGetter<T,H> listGetter,predicate)
public SimpleListHolder<T> getFlatUp()
ListHolder
all the T elements that are present in the
current node and its ancestors, up to the root node.public SimpleListHolder<T> getFlatAbove()
ListHolder
all the T elements that are present in the
current node's ancestors, up to the root node.public SimpleListHolder<T> getFlatDown()
ListHolder
all the T elements that are present in the
current node and all its descendants.public SimpleListHolder<T> getFlatFull()
ListHolder
all the T elements that are present in the
current node's root and all its descendants.public SimpleListHolder<T> getUniqueFlatUp()
ListHolder
all the T elements (without duplicate) that are present in the
current node and its ancestors, up to the root node.public SimpleListHolder<T> getUniqueFlatDown()
ListHolder
all the T elements (without duplicates) that are present in the
current node and all its descendants.public SimpleListHolder<T> getUniqueFlatFull()
ListHolder
all the T elements (without duplicate) that are present in the
current node's root and all its descendants.Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.