y25.base
Class LayerEdgeList

java.lang.Object
  extended byy.base.YList
      extended byy25.base.LayerEdgeList
All Implemented Interfaces:
Collection

public class LayerEdgeList
extends YList

Specialized list implementation for instances of type LayerEdge.

Iterating over the elements of this list is accomplished by retrieving a LayerEdgeCursor via the method layerEdges (see the LayerEdgeCursor documentation for an example).


Nested Class Summary
 
Nested classes inherited from class y.base.YList
YList.ListCursorImpl
 
Constructor Summary
LayerEdgeList()
          Creates an empty layeredge list.
LayerEdgeList(Iterator it)
          Creates a list that is initialized with the elements provided by the given Iterator object.
LayerEdgeList(LayerEdge e)
          Creates a list that is initialized with a single layeredge provided.
LayerEdgeList(LayerEdge[] layerEdges)
          Creates a list that is initialized with the layeredges provided by the given array of layeredges.
LayerEdgeList(LayerEdgeCursor ec)
          Creates a list that is initialized with the layeredges provided by the given LayerEdgeCursor object.
LayerEdgeList(LayerEdgeCursor ec, DataProvider predicate)
          Creates a list that is initialized with those layeredges from the given LayerEdgeCursor object for which the given data provider returns true upon calling its getBool method.
 
Method Summary
 LayerEdge firstLayerEdge()
          Returns the first layeredge in this list, or null when the list is empty.
 LayerEdge lastLayerEdge()
          Returns the last layeredge in this list, or null when the list is empty.
 LayerEdgeCursor layerEdges()
          Returns a layeredge cursor for the layeredges.
 
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

LayerEdgeList

public LayerEdgeList()
Creates an empty layeredge list.


LayerEdgeList

public LayerEdgeList(LayerEdge e)
Creates a list that is initialized with a single layeredge provided.


LayerEdgeList

public LayerEdgeList(LayerEdge[] layerEdges)
Creates a list that is initialized with the layeredges provided by the given array of layeredges.


LayerEdgeList

public LayerEdgeList(LayerEdgeCursor ec)
Creates a list that is initialized with the layeredges provided by the given LayerEdgeCursor object.


LayerEdgeList

public LayerEdgeList(LayerEdgeCursor ec,
                     DataProvider predicate)
Creates a list that is initialized with those layeredges from the given LayerEdgeCursor object for which the given data provider returns true upon calling its getBool method.

Parameters:
ec - A layeredge cursor providing layeredges that should be added to this list.
predicate - A data provider that acts as a inclusion predicate for each layeredge accessible by the given layeredge cursor.

LayerEdgeList

public LayerEdgeList(Iterator it)
Creates a list that is initialized with the elements provided by the given Iterator object.

Method Detail

firstLayerEdge

public LayerEdge firstLayerEdge()
Returns the first layeredge in this list, or null when the list is empty.


lastLayerEdge

public LayerEdge lastLayerEdge()
Returns the last layeredge in this list, or null when the list is empty.


layerEdges

public LayerEdgeCursor layerEdges()
Returns a layeredge cursor for the layeredges.