abstract class ExtendedCoordinateCache
Class ExtendedCoordinateCache. Provides extendedcoordinatecache functionality for the Hytale server.
java.lang.Object > ExtendedCoordinateCache
Field Summary
x
final
int
x
Field x.
z
final
int
z
Field z.
k
private
K
k
Field k.
seed
private
int
seed
Field seed.
coord
private
long
coord
Field coord.
hash
private
int
hash
Field hash.
that
final
ExtendedCoordinateKey>
that
Field that.
Method Detail
ExtendedCoordinateCache
public
public
ExtendedCoordinateCache
(@Nonnull final ExtendedCoordinateObjectFunction loader, @Nullable final ExtendedCoordinateRemovalListener removalListener, final int maxSize, final long expireAfterSeconds)
Method ExtendedCoordinateCache.
- Parameters:
@Nonnull final ExtendedCoordinateObjectFunctionloader@Nullable final ExtendedCoordinateRemovalListenerremovalListenerfinal intmaxSizefinal longexpireAfterSeconds
get
public
T
get
(@Nonnull final K k, final int seed, final int x, final int y)
Method get.
- Parameters:
@Nonnull final Kkfinal intseedfinal intxfinal inty
ExtendedCoordinateKey
public
public
ExtendedCoordinateKey
()
Method ExtendedCoordinateKey.
setLocation
public
ExtendedCoordinateKey
setLocation
(@Nonnull final K k, final int seed, final int x, final int y)
Method setLocation.
- Parameters:
@Nonnull final Kkfinal intseedfinal intxfinal inty
apply
public
ExtendedCoordinateKey
apply
(@Nonnull final ExtendedCoordinateKey cachedKey)
Method apply.
- Parameters:
@Nonnull final ExtendedCoordinateKeycachedKey
hashCode
public
int
hashCode
()
Method hashCode.
equals
public
boolean
equals
(final Object o)
Method equals.
- Parameters:
final Objecto