|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.base.YList y.base.NodeList
public class NodeList
Specialized list implementation for instances of type Node
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class y.base.YList |
---|
YList.ListCursorImpl |
Constructor Summary | |
---|---|
NodeList()
Creates an empty node list. |
|
NodeList(java.util.Iterator it)
Creates a list that is initialized with the elements provided by the given Iterator object. |
|
NodeList(Node v)
Creates a list that is initialized with a single node provided. |
|
NodeList(Node[] a)
Creates a list that is initialized with the nodes provided by the given array of nodes. |
|
NodeList(NodeCursor c)
Creates a list that is initialized with the nodes provided by the given NodeCursor object. |
|
NodeList(NodeCursor nc,
DataProvider predicate)
Creates a list that is initialized with those nodes from the given NodeCursor object for which the given data provider returns true upon
calling its getBool method. |
|
NodeList(NodeList list)
Creates a list that is initialized with the entries of the given list. |
Method Summary | |
---|---|
Node |
firstNode()
Returns the first node in this list, or null when the list is
empty. |
Node |
lastNode()
Returns the last node in this list, or null when the list is empty. |
NodeCursor |
nodes()
Returns a node cursor for this node list. |
Node |
popNode()
Removes the first node from this list and returns it. |
Node[] |
toNodeArray()
Returns a node array containing all elements of this list in the canonical order. |
Methods inherited from class y.base.YList |
---|
add, add, addAll, addAll, addAll, addFirst, addFirstCell, addLast, addLastCell, clear, contains, containsAll, cursor, cyclicPred, cyclicSucc, elementAt, equals, findCell, first, firstCell, get, getCell, getInfo, hashCode, indexOf, insertAfter, insertBefore, insertCellAfter, insertCellBefore, isEmpty, iterator, last, lastCell, lastIndexOf, listIterator, listIterator, peek, pop, popLast, predCell, push, remove, remove, removeAll, removeAt, removeCell, retainAll, reverse, set, setInfo, size, sort, sort, splice, subList, succCell, toArray, toArray, toString, toVector |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeList()
public NodeList(NodeCursor c)
public NodeList(NodeCursor nc, DataProvider predicate)
true
upon
calling its getBool
method.
nc
- A node cursor providing nodes that should be added to this list.predicate
- A data provider that acts as a inclusion predicate for each node accessible
by the given node cursor.public NodeList(java.util.Iterator it)
public NodeList(Node[] a)
public NodeList(Node v)
public NodeList(NodeList list)
list
- the values are added to the new listMethod Detail |
---|
public NodeCursor nodes()
public Node firstNode()
null
when the list is
empty.
public Node lastNode()
null
when the list is empty.
public Node popNode()
public Node[] toNodeArray()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |