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 $

Variable Index

 o counter

Constructor Index

 o StoreCounterPrinter()

Method Index

 o action(StoreElement, int)
 o doAll(Store)

Variables

 o counter
 private int counter

Constructors

 o StoreCounterPrinter
 public StoreCounterPrinter()

Methods

 o doAll
 public void doAll(Store store)
Overrides:
doAll in class StorePrinter
 o action
 public abstract void action(StoreElement item,
                             int counter)

All Packages  Class Hierarchy  This Package  Previous  Next  Index