|
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.EdgeList
public class EdgeList
Specialized list implementation for instances of type Edge
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class y.base.YList |
---|
YList.ListCursorImpl |
Constructor Summary | |
---|---|
EdgeList()
Creates an empty edge list. |
|
EdgeList(Edge e)
Creates a list that is initialized with a single edge provided. |
|
EdgeList(Edge[] a)
Creates a list that is initialized with the edges provided by the given array of edges. |
|
EdgeList(EdgeCursor c)
Creates a list that is initialized with the edges provided by the given EdgeCursor object. |
|
EdgeList(EdgeCursor ec,
DataProvider predicate)
Creates a list that is initialized with those edges from the given EdgeCursor object for which the given data provider returns true upon
calling its getBool method. |
|
EdgeList(EdgeList edgeList)
Creates a list that is initialized with a given other EdgeList . |
|
EdgeList(java.util.Iterator it)
Creates a list that is initialized with the elements provided by the given Iterator object. |
Method Summary | |
---|---|
EdgeCursor |
edges()
Returns an edge cursor for this edge list. |
Edge |
firstEdge()
Returns the first edge in this list, or null when the list is
empty. |
Edge |
lastEdge()
Returns the last edge in this list, or null when the list is empty. |
Edge |
popEdge()
Removes the first edge from this list and returns it. |
Edge[] |
toEdgeArray()
Returns an edge 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 EdgeList()
public EdgeList(Edge[] a)
public EdgeList(EdgeCursor c)
EdgeCursor
object.
public EdgeList(EdgeCursor ec, DataProvider predicate)
true
upon
calling its getBool
method.
ec
- An edge cursor providing edges that should be added to this list.predicate
- A data provider that acts as a inclusion predicate for each edge accessible
by the given edge cursor.public EdgeList(java.util.Iterator it)
public EdgeList(Edge e)
public EdgeList(EdgeList edgeList)
EdgeList
.
Method Detail |
---|
public EdgeCursor edges()
public Edge firstEdge()
null
when the list is
empty.
public Edge lastEdge()
null
when the list is empty.
public Edge popEdge()
public Edge[] toEdgeArray()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |