public interface View<N> extends Iterable<N>
Modifier and Type | Method and Description |
---|---|
View<N> |
exclude(View<N> pView)
Return a new view which contains all the items in this view minus any items
in the specified view.
|
Tree<N> |
getTree()
Returns the
Tree from which this View was created. |
View<N> |
include(View<N> pView)
Return a new view which contains all the items in this view plus any items
in the specified view.
|
boolean |
isItemInView(N pItem)
Returns
true if the specified item is in View |
Relationships<N> |
relationships(N pBase,
N pCurrent)
Return a Relationships object which identifies the relationship between two objects in the tree.
|
Walker<N> |
walker()
Return Walker to traverse the originating tree, traversing only the items in the view.
|
forEach, iterator, spliterator
boolean isItemInView(N pItem)
true
if the specified item is in View
pItem
- the item you want to check to see if it's in the
Viewtrue
if pItem is in View
,
false
otherwise.View<N> exclude(View<N> pView)
pView
- the view to excludeView<N> include(View<N> pView)
pView
- the view to include.Tree<N> getTree()
Tree
from which this View
was created.Walker<N> walker()
Relationships<N> relationships(N pBase, N pCurrent)
pBase
- the base nodepCurrent
- the current node© 1998- 2018 Stibo DX