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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
smallPrimeTable
protected Int32Array smallPrimeTable
PrimeSizeProvider
protected PrimeSizeProvider(Int32Array aSmallPrimeTable)
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.