public interface IPointHash
setState(int)
function, but it doesn't have to do anything if the
algorithm doesn't support a state; similarly, hashWithState(int, int, int)
can return the same thing as
hash(int, int)
if states aren't supported. If states are supported, then calling hash(int, int)
while the state is, for example, 42 should be the same as calling hashWithState(int, int, int)
with a state
parameter of 42 (regardless of what the state actually is in the implementor).
Modifier and Type | Interface and Description |
---|---|
static class |
IPointHash.IntImpl
A convenience abstract class to implement IPointHash when you have an int for state.
|
static class |
IPointHash.LongImpl
A convenience abstract class to implement IPointHash when you have a long for state.
|
Modifier and Type | Method and Description |
---|---|
int |
hash(int x,
int y) |
int |
hash(int x,
int y,
int z) |
int |
hash(int x,
int y,
int z,
int w) |
int |
hash(int x,
int y,
int z,
int w,
int u) |
int |
hash(int x,
int y,
int z,
int w,
int u,
int v) |
int |
hashWithState(int x,
int y,
int state) |
int |
hashWithState(int x,
int y,
int z,
int state) |
int |
hashWithState(int x,
int y,
int z,
int w,
int state) |
int |
hashWithState(int x,
int y,
int z,
int w,
int u,
int state) |
int |
hashWithState(int x,
int y,
int z,
int w,
int u,
int v,
int state) |
void |
setState(int state) |
void |
setState(long state) |
void setState(int state)
void setState(long state)
int hash(int x, int y)
int hash(int x, int y, int z)
int hash(int x, int y, int z, int w)
int hash(int x, int y, int z, int w, int u)
int hash(int x, int y, int z, int w, int u, int v)
int hashWithState(int x, int y, int state)
int hashWithState(int x, int y, int z, int state)
int hashWithState(int x, int y, int z, int w, int state)
int hashWithState(int x, int y, int z, int w, int u, int state)
int hashWithState(int x, int y, int z, int w, int u, int v, int state)
Copyright © Eben Howard 2012–2022. All rights reserved.