com.arctorus.documents
Class AdjustmentList

java.lang.Object
  extended by com.arctorus.documents.AdjustmentList
All Implemented Interfaces:
java.lang.Iterable<Adjustment>, java.util.Iterator<Adjustment>

public final class AdjustmentList
extends java.lang.Object
implements java.util.Iterator<Adjustment>, java.lang.Iterable<Adjustment>

Collection of adjustment guides used for an auto shape.


Field Summary
static AdjustmentList NULL
          NULL AdjustmentList
 
Method Summary
 Adjustment get(int index)
          Returns adjustment by index.
 boolean hasNext()
          Returns true if the iteration has more elements.
 boolean isEmpty()
          Returns true if the collection is empty.
 java.util.Iterator<Adjustment> iterator()
          Returns an iterator for the collection of Adjustments.
 Adjustment next()
          Returns the next element in the iteration.
 void remove()
          Removes from the underlying collection the last element returned by the iterator (optional operation).
 int size()
          Returns the number of adjustments in the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final AdjustmentList NULL
NULL AdjustmentList

Method Detail

size

public int size()
Returns the number of adjustments in the collection.


isEmpty

public boolean isEmpty()
Returns true if the collection is empty.


get

public Adjustment get(int index)
Returns adjustment by index.


hasNext

public boolean hasNext()
Returns true if the iteration has more elements.

Specified by:
hasNext in interface java.util.Iterator<Adjustment>

next

public Adjustment next()
Returns the next element in the iteration.

Specified by:
next in interface java.util.Iterator<Adjustment>

remove

public void remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). This method can be called only once per call to next. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.

Specified by:
remove in interface java.util.Iterator<Adjustment>

iterator

public java.util.Iterator<Adjustment> iterator()
Returns an iterator for the collection of Adjustments.

Specified by:
iterator in interface java.lang.Iterable<Adjustment>