|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.Rehashers
public class Rehashers
A collection of default implementations of Rehasher
| Constructor Summary | |
|---|---|
Rehashers()
|
|
| Method Summary | |
|---|---|
static Rehasher |
compose(Rehasher applySecond,
Rehasher applyFirst)
Returns a Rehasher that composes the two provided Rehashers, applying the second argument to the input first, and providing the result of this to the Rehasher provided in the first argument |
static Rehasher |
flip()
a Rehasher that reverses the bit string of the input |
static Rehasher |
flipEveryHalfByte()
Return a Rehasher that considers its input as a bit string, and reverses each 4 bit substring within the input |
static Rehasher |
identity()
Return a Rehasher that does not modify its input |
static Rehasher |
jdkConcurrentHashmapRehasher()
Return a Rehasher which uses the same algorithm as java.util.concurrent.ConcurrentHashMap |
static Rehasher |
jdkHashmapRehasher()
Return a Rehasher which uses the same algorithm as java.util.HashMap |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rehashers()
| Method Detail |
|---|
public static Rehasher jdkHashmapRehasher()
public static Rehasher jdkConcurrentHashmapRehasher()
public static Rehasher identity()
public static Rehasher flipEveryHalfByte()
public static Rehasher flip()
public static Rehasher compose(Rehasher applySecond,
Rehasher applyFirst)
applySecond - Rehasher to apply secondapplyFirst - Rehasher to apply first
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||