org.abora.white.tabtool
Class PrimeSizeProvider

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.tabtool.PrimeSizeProvider
Direct Known Subclasses:
LPPrimeSizeProvider

public class PrimeSizeProvider
extends Heaper

This is a non-stepper stepper that returns a stream of prime numbers. SCPrimeSizeProvider rejects many primes to be nice for secondary clustering at the cost of increased table size, LPPrimeSizeProvider does not claim to do this. - michael 31 July 1991


Field Summary
protected  Int32Array smallPrimeTable
           
 
Constructor Summary
protected PrimeSizeProvider(Int32Array aSmallPrimeTable)
           
 
Method Summary
 int actualHashForEqual()
          Defined by subclasses to produce the value returned by hashForEqual.
 boolean isEqual(Heaper other)
          Return true if the two objects are equal.
static PrimeSizeProvider make()
           
 IntegerValue primeAfter(IntegerValue attempt)
           
 int uInt32PrimeAfter(int attempt)
           
 
Methods inherited from class org.abora.white.xpp.basic.Heaper
destroy, destruct, equals, hashForEqual, printContentsOn, printOn, sendSelfTo, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

smallPrimeTable

protected Int32Array smallPrimeTable
Constructor Detail

PrimeSizeProvider

protected PrimeSizeProvider(Int32Array aSmallPrimeTable)
Method Detail

make

public static PrimeSizeProvider make()

primeAfter

public IntegerValue primeAfter(IntegerValue attempt)

uInt32PrimeAfter

public int uInt32PrimeAfter(int attempt)

actualHashForEqual

public int actualHashForEqual()
Description copied from class: Heaper
Defined by subclasses to produce the value returned by hashForEqual.

Overrides:
actualHashForEqual in class Heaper

isEqual

public boolean isEqual(Heaper other)
Description copied from class: Heaper
Return true if the two objects are equal.

Specified by:
isEqual in class Heaper


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