Package squidpony.squidmath
Class IPointHash.LongImpl
java.lang.Object
squidpony.squidmath.IPointHash.LongImpl
- All Implemented Interfaces:
IPointHash
- Direct Known Subclasses:
FlawedPointHash.CubeHash
,FlawedPointHash.QuiltHash
,FlawedPointHash.RugHash
,HastyPointHash
,PointHash
- Enclosing interface:
- IPointHash
public abstract static class IPointHash.LongImpl extends Object implements IPointHash
A convenience abstract class to implement IPointHash when you have a long for state. Subclasses will need to
implement
IPointHash.hashWithState(int, int, int)
, IPointHash.hashWithState(int, int, int, int)
,
IPointHash.hashWithState(int, int, int, int, int)
, and IPointHash.hashWithState(int, int, int, int, int, int, int)
.
They can optionally override setState(int)
or setState(long)
, and can at their discretion
provide an accessor for the protected long state
.-
Nested Class Summary
Nested classes/interfaces inherited from interface squidpony.squidmath.IPointHash
IPointHash.IntImpl, IPointHash.LongImpl
-
Field Summary
Fields Modifier and Type Field Description protected long
state
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface squidpony.squidmath.IPointHash
hashWithState, hashWithState, hashWithState, hashWithState
-
Field Details
-
Constructor Details
-
Method Details
-
setState
- Specified by:
setState
in interfaceIPointHash
-
setState
-
hash
- Specified by:
hash
in interfaceIPointHash
-
hash
- Specified by:
hash
in interfaceIPointHash
-
hash
- Specified by:
hash
in interfaceIPointHash
-
hash
- Specified by:
hash
in interfaceIPointHash
-