public final class WeightedMaps extends Object
Modifier and Type | Method and Description |
---|---|
static <E> WeightedMap<E> |
createWeightedMap()
Create and return a new weighted map with the default initial capacity
and load factor.
|
static <E> WeightedMap<E> |
createWeightedMap(int initialCapacity)
Create and return new weighted map with the specified initial capacity
and default load factor.
|
static <E> WeightedMap<E> |
createWeightedMap(int initialCapacity,
float loadFactor)
Create and return new weighted map with the specified initial capacity
and load factor.
|
static <E> WeightedMap<E> |
createWeightedMap(WeightedMap<? extends E> weightedMap)
Create and return a new weighted map with the elements and weights
in the specified weighted map.
|
public static <E> WeightedMap<E> createWeightedMap()
E
- element typepublic static <E> WeightedMap<E> createWeightedMap(int initialCapacity)
E
- element typeinitialCapacity
- initial capacitypublic static <E> WeightedMap<E> createWeightedMap(int initialCapacity, float loadFactor)
E
- element typeinitialCapacity
- initial capacityloadFactor
- load factorpublic static <E> WeightedMap<E> createWeightedMap(WeightedMap<? extends E> weightedMap)
E
- element typeweightedMap
- weighted map to copy, must not be nullCopyright (c) 2005-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).