ExtendedCoordinateCache

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 ExtendedCoordinateObjectFunction loader
@Nullable final ExtendedCoordinateRemovalListener removalListener
final int maxSize
final long expireAfterSeconds

get

public T get (@Nonnull final K k, final int seed, final int x, final int y)

Method get.

Parameters:
@Nonnull final K k
final int seed
final int x
final int y

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 K k
final int seed
final int x
final int y

apply

public ExtendedCoordinateKey apply (@Nonnull final ExtendedCoordinateKey cachedKey)

Method apply.

Parameters:
@Nonnull final ExtendedCoordinateKey cachedKey

hashCode

public int hashCode ()

Method hashCode.

equals

public boolean equals (final Object o)

Method equals.

Parameters:
final Object o