public class EdgeList extends YList implements ICollection<Object>
Edge
.EMPTY
Constructor and Description |
---|
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(EdgeList edgeList)
Creates a list that is initialized with an EdgeList.
|
EdgeList(IEdgeCursor c)
Creates a list that is initialized with the edges provided by the given EdgeCursor object.
|
EdgeList(IEdgeCursor ec,
IDataProvider 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. |
Modifier and Type | Method and Description |
---|---|
IEdgeCursor |
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.
|
add, add, addAll, addAll, addAll, addFirst, addFirstCell, addLast, addLastCell, clear, contains, containsAll, copyTo, copyTo, cursor, cyclicPred, cyclicSucc, elementAt, enumerator, equals, findCell, first, firstCell, get, getCell, getInfo, hashCode, indexOf, insertAfter, insertBefore, insertCellAfter, insertCellBefore, isEmpty, last, lastCell, lastIndexOf, listIterator, parallelStream, peek, pop, popLast, predCell, push, remove, removeAll, removeAt, removeCell, retainAll, reverse, set, setInfo, size, sort, sort, splice, stream, subList, succCell, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, isEmpty, iterator, parallelStream, remove, removeAll, retainAll, stream, toArray, toArray
concat, concat, create, create, enumerator
add, clear, contains, equals, hashCode, removeIf, size, spliterator
iterator, listIterator, remove, replaceAll, spliterator
public EdgeList()
public EdgeList(Edge e)
public EdgeList(Edge[] a)
public EdgeList(EdgeList edgeList)
public EdgeList(IEdgeCursor c)
public EdgeList(IEdgeCursor ec, IDataProvider 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 final IEdgeCursor edges()
public final Edge firstEdge()
null
when the list is empty.public final Edge lastEdge()
null
when the list is empty.public final Edge popEdge()
public final Edge[] toEdgeArray()