org.abora.white.collection.steppers
Class TableAccumulator

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.collection.steppers.Accumulator
              |
              +--org.abora.white.collection.steppers.TableAccumulator
Direct Known Subclasses:
ArrayAccumulator

public abstract class TableAccumulator
extends Accumulator

Consider this class''s public status as obsolete. Eventually This class will either be private of get retired.


Constructor Summary
TableAccumulator()
           
 
Method Summary
abstract  Accumulator copy()
          Should this copy the array?
static TableAccumulator make()
          Returns an Accumulator which will produce an MuArray of the elements accumulated into it in order of accumulation.
 void printOn(java.io.PrintWriter oo)
          This should rarely be overridden.
abstract  void step(Heaper elem)
          Add elem to the internal table.
abstract  Heaper value()
          Return the accumulated table.
 
Methods inherited from class org.abora.white.collection.steppers.Accumulator
actualHashForEqual, isEqual, ptrArray
 
Methods inherited from class org.abora.white.xpp.basic.Heaper
destroy, destruct, equals, hashForEqual, printContentsOn, sendSelfTo, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableAccumulator

public TableAccumulator()
Method Detail

step

public abstract void step(Heaper elem)
Add elem to the internal table.

Specified by:
step in class Accumulator

value

public abstract Heaper value()
Return the accumulated table.

Specified by:
value in class Accumulator

copy

public abstract Accumulator copy()
Should this copy the array?

Specified by:
copy in class Accumulator

printOn

public void printOn(java.io.PrintWriter oo)
Description copied from class: Heaper
This should rarely be overridden. In Tofu, it prints ClassName(...), where ... is either produced by printInsideOn or is ??? if printInsideOn it not overridden.

Overrides:
printOn in class Heaper

make

public static TableAccumulator make()
Returns an Accumulator which will produce an MuArray of the elements accumulated into it in order of accumulation. See MuArray. Equivalent to 'arrayAccumulator()'. Eventually either he or I should be declared obsolete. INLINE



Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.