net.walend.collection
Class MapBag.BagIterator

java.lang.Object
  |
  +--net.walend.collection.MapBag.BagIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
MapBag

protected class MapBag.BagIterator
extends java.lang.Object
implements java.util.Iterator


Field Summary
private  Bag bag
           
private  int count
           
private  MapBag.Counter currentCounter
           
private  java.util.Iterator keyIt
           
private  java.util.Map map
           
private  boolean nextCalled
           
private  java.lang.Object object
           
 
Constructor Summary
MapBag.BagIterator(java.util.Map map, MapBag bag)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyIt

private java.util.Iterator keyIt

object

private java.lang.Object object

nextCalled

private boolean nextCalled

currentCounter

private MapBag.Counter currentCounter

count

private int count

map

private java.util.Map map

bag

private Bag bag
Constructor Detail

MapBag.BagIterator

public MapBag.BagIterator(java.util.Map map,
                          MapBag bag)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


Copyright (c) 2001, 2002, David Walend