Skip to content

WeightedMap.Builder

Package: com.hypixel.hytale.common.map

public static class Builder<T>
ModifierTypeName
private finalT[]emptyKeys
privateT[]keys
privatedouble[]values
privateintsize
ModifierReturn TypeSignature
privateBuilder(T[] emptyKeys)
publicWeightedMap.Builder<T>putAll(@Nullable IWeightedMap<T> map)
publicWeightedMap.Builder<T>putAll(@Nullable T[] arr, @Nonnull ToDoubleFunction<T> weight)
publicWeightedMap.Builder<T>put(T obj, double weight)
publicvoidensureCapacity(int toAdd)
privatevoidresize(int newLength)
privatevoidinsert(T key, double value)
publicintsize()
privateintallocated()
publicvoidclear()
publicIWeightedMap<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.