|
||||||||||
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
This is a special list implementation for instances of type
Node
.
Nested Class Summary |
Nested classes inherited from class y.base.YList |
YList.ListCursorImpl |
Constructor Summary | |
NodeList()
Creates an empty List. |
|
NodeList(Iterator it)
Creates a list that is initialized with the elements provided by the Iterator it . |
|
NodeList(Node v)
Creates a list that is initialized with a single element provided |
|
NodeList(Node[] a)
Creates a list that is initialized with the elements provided by the given array of Nodes |
|
NodeList(NodeCursor c)
Creates a list containing the nodes accessible via the given node cursor. |
|
NodeList(NodeCursor nc,
DataProvider predicate)
Creates a list containing the nodes accessible via the given node cursor for which the given data provider returns true upon
calling its getBool method. |
Method Summary | |
Node |
firstNode()
Returns the first node in this list, null when the
list is empty. |
Node |
lastNode()
Returns the last node in this list, null when the
list is empty. |
NodeCursor |
nodes()
Returns a node cursor for this node list. |
Node |
popNode()
Removes the first node in this list and returns it. |
Node[] |
toNodeArray()
Returns a node array containing all elements of this list in the canonic order. |
Methods inherited from class y.base.YList |
add, addAll, addAll, addFirst, addFirstCell, addLast, addLastCell, clear, contains, containsAll, cursor, cyclicPred, cyclicSucc, elementAt, findCell, first, firstCell, getInfo, indexOf, insertAfter, insertBefore, insertCellAfter, insertCellBefore, isEmpty, iterator, last, lastCell, peek, pop, popLast, predCell, push, remove, removeAll, removeAt, removeCell, retainAll, reverse, setInfo, size, sort, sort, splice, succCell, toArray, toArray, toString, toVector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Constructor Detail |
public NodeList()
public NodeList(NodeCursor c)
c
- A node cursor providing nodes that are initially entered
into this list.public NodeList(NodeCursor nc, DataProvider predicate)
true
upon
calling its getBool method.
nc
- a node cursor providing nodes that are initially entered
into this list.predicate
- a dataprovider that acts as a inclusion predicate
for each node accessible from the node cursorpublic NodeList(Iterator it)
it
.
public NodeList(Node[] a)
public NodeList(Node v)
Method 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-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |