Contents
Class WeightedMap.Builder<T>
java.lang.Object
com.hypixel.hytale.common.map.WeightedMap.Builder<T>
- Enclosing class:
WeightedMap<T>
- Since:
- 01.05.2017
-
Method Summary
Modifier and TypeMethodDescriptionbuild()voidclear()voidensureCapacity(int toAdd) putAll(IWeightedMap<T> map) putAll(T[] arr, ToDoubleFunction<T> weight) intsize()
-
Method Details
-
putAll
-
putAll
@Nonnull public WeightedMap.Builder<T> putAll(@Nullable T[] arr, @Nonnull ToDoubleFunction<T> weight) -
put
-
ensureCapacity
public void ensureCapacity(int toAdd) -
size
public int size() -
clear
public void clear() -
build
-