All Packages Class Hierarchy This Package Previous Next Index
Class store.StoreCounterPrinter
java.lang.Object
|
+----store.StorePrinter
|
+----store.StoreCounterPrinter
- public abstract class StoreCounterPrinter
- extends StorePrinter
A StoreIterator that prints all elements in a Store and also keeps track
of the position in the store.
The class is abstract so that subclasses of this class can define the
action method. That action method is called from this method. (If the
class is not abstract then the doAll method would call the action method
defined here and not the action method in a subclass [that is what you
want]).
- Version:
- $Revision: 1.2 $
-
counter
-
-
StoreCounterPrinter()
-
-
action(StoreElement, int)
-
-
doAll(Store)
-
counter
private int counter
StoreCounterPrinter
public StoreCounterPrinter()
doAll
public void doAll(Store store)
- Overrides:
- doAll in class StorePrinter
action
public abstract void action(StoreElement item,
int counter)
All Packages Class Hierarchy This Package Previous Next Index