WeightedMap.Builder
Package: com.hypixel.hytale.common.map
public static class Builder<T>Fields
Section titled “Fields”| Modifier | Type | Name |
|---|---|---|
private final | T[] | emptyKeys |
private | T[] | keys |
private | double[] | values |
private | int | size |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
private | “ | Builder(T[] emptyKeys) |
public | WeightedMap.Builder<T> | putAll(@Nullable IWeightedMap<T> map) |
public | WeightedMap.Builder<T> | putAll(@Nullable T[] arr, @Nonnull ToDoubleFunction<T> weight) |
public | WeightedMap.Builder<T> | put(T obj, double weight) |
public | void | ensureCapacity(int toAdd) |
private | void | resize(int newLength) |
private | void | insert(T key, double value) |
public | int | size() |
private | int | allocated() |
public | void | clear() |
public | IWeightedMap<T> | build() |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.