Contents
- Description
- Nested Class Summary
- Field Summary
- Method Summary
- Field Details
- Method Details
- builder(T[])
- get(double)
- get(DoubleSupplier)
- get(Random)
- get(int, int, BiIntToDoubleFunction)
- get(long, long, BiLongToDoubleFunction)
- get(double, double, BiDoubleToDoubleFunction)
- get(int, int, int, IWeightedMap.SeedCoordinateFunction, K)
- size()
- contains(T)
- forEach(Consumer)
- forEachEntry(ObjDoubleConsumer)
- internalKeys()
- toArray()
- resolveKeys(Function, IntFunction)
- toString()
Class WeightedMap<T>
java.lang.Object
com.hypixel.hytale.common.map.WeightedMap<T>
- All Implemented Interfaces:
IWeightedMap<T>
- Since:
- 01.05.2017
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface IWeightedMap
IWeightedMap.SeedCoordinateFunction<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final double -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> WeightedMap.Builder<T> builder(T[] emptyKeys) booleanvoidvoidforEachEntry(ObjDoubleConsumer<T> consumer) get(double value) get(double x, double z, BiDoubleToDoubleFunction supplier) <K> Tget(int seed, int x, int z, IWeightedMap.SeedCoordinateFunction<K> supplier, K k) get(int x, int z, BiIntToDoubleFunction supplier) get(long x, long z, BiLongToDoubleFunction supplier) get(DoubleSupplier supplier) T[]<K> IWeightedMap<K> resolveKeys(Function<T, K> mapper, IntFunction<K[]> arraySupplier) intsize()T[]toArray()toString()
-
Field Details
-
EPSILON
public static final double EPSILON- See Also:
-
ONE_MINUS_EPSILON
public static final double ONE_MINUS_EPSILON- See Also:
-
-
Method Details
-
builder
-
get
- Specified by:
getin interfaceIWeightedMap<T>
-
get
- Specified by:
getin interfaceIWeightedMap<T>
-
get
- Specified by:
getin interfaceIWeightedMap<T>
-
get
- Specified by:
getin interfaceIWeightedMap<T>
-
get
- Specified by:
getin interfaceIWeightedMap<T>
-
get
- Specified by:
getin interfaceIWeightedMap<T>
-
get
@Nullable public <K> T get(int seed, int x, int z, @Nonnull IWeightedMap.SeedCoordinateFunction<K> supplier, K k) - Specified by:
getin interfaceIWeightedMap<T>
-
size
public int size()- Specified by:
sizein interfaceIWeightedMap<T>
-
contains
- Specified by:
containsin interfaceIWeightedMap<T>
-
forEach
- Specified by:
forEachin interfaceIWeightedMap<T>
-
forEachEntry
- Specified by:
forEachEntryin interfaceIWeightedMap<T>
-
internalKeys
- Specified by:
internalKeysin interfaceIWeightedMap<T>
-
toArray
- Specified by:
toArrayin interfaceIWeightedMap<T>
-
resolveKeys
@Nonnull public <K> IWeightedMap<K> resolveKeys(@Nonnull Function<T, K> mapper, @Nonnull IntFunction<K[]> arraySupplier) - Specified by:
resolveKeysin interfaceIWeightedMap<T>
-
toString
-