Packagesystem.data.iterators
Classpublic class BagIterator
InheritanceBagIterator Inheritance Object
Implements Iterator

Converts an Bag to an iterator.



Public Properties
 PropertyDefined By
  DEFAULT_COMODIFICATION_MESSAGE : String = BagIterator check for comodification failed with a Bag.
[static] The default comodification message.
BagIterator
Public Methods
 MethodDefined By
  
Creates a new BagIterator instance.
BagIterator
  
checkForComodification(message:String = null):void
This method check the comodification of the Bag and test if the iterator is valid and can continue to process.
BagIterator
  
hasNext():Boolean
Returns true if the iteration has more elements.
BagIterator
  
key():*
Unsupported method in all BagIterator.
BagIterator
  
next():*
Returns the next element in the iteration.
BagIterator
  
remove():*
Removes from the underlying collection the last element returned by the iterator (optional operation).
BagIterator
  
reset():void
Unsupported method in all BagIterator.
BagIterator
  
seek(position:*):void
Unsupported method in all BagIterator.
BagIterator
Property Detail
DEFAULT_COMODIFICATION_MESSAGEproperty
public static var DEFAULT_COMODIFICATION_MESSAGE:String = BagIterator check for comodification failed with a Bag.

The default comodification message.

Constructor Detail
BagIterator()Constructor
public function BagIterator(parent:CoreMapBag, support:Iterator)

Creates a new BagIterator instance.

Parameters
parent:CoreMapBag — the bag CoreMapBag used in this iterator.
 
support:Iterator — the iterator to support this iterator.
Method Detail
checkForComodification()method
public function checkForComodification(message:String = null):void

This method check the comodification of the Bag and test if the iterator is valid and can continue to process.

Parameters

message:String (default = null)

hasNext()method 
public function hasNext():Boolean

Returns true if the iteration has more elements.

Returns
Booleantrue if the iteration has more elements.
key()method 
public function key():*

Unsupported method in all BagIterator.

Returns
*

Throws
IllegalOperationError key method in unsupported.
next()method 
public function next():*

Returns the next element in the iteration.

Returns
* — the next element in the iteration.

Throws
ConcurrentModificationError — the next method failed with an internal concurrent modification.
remove()method 
public function remove():*

Removes from the underlying collection the last element returned by the iterator (optional operation).

Returns
*
reset()method 
public function reset():void

Unsupported method in all BagIterator.


Throws
IllegalOperationError reset method in unsupported.
seek()method 
public function seek(position:*):void

Unsupported method in all BagIterator.

Parameters

position:*


Throws
IllegalOperationError seek method in unsupported.