Modifier and Type | Class and Description |
---|---|
class |
HashWeightedMap<E>
Implementation of WeightedMap that delegates to a HashMap.
|
Modifier and Type | Method and Description |
---|---|
static <E> WeightedMap<E> |
WeightedMaps.createWeightedMap()
Create and return a new weighted map with the default initial capacity
and load factor.
|
static <E> WeightedMap<E> |
WeightedMaps.createWeightedMap(int initialCapacity)
Create and return new weighted map with the specified initial capacity
and default load factor.
|
static <E> WeightedMap<E> |
WeightedMaps.createWeightedMap(int initialCapacity,
float loadFactor)
Create and return new weighted map with the specified initial capacity
and load factor.
|
static <E> WeightedMap<E> |
WeightedMaps.createWeightedMap(WeightedMap<? extends E> weightedMap)
Create and return a new weighted map with the elements and weights
in the specified weighted map.
|
Modifier and Type | Method and Description |
---|---|
static <E> WeightedMap<E> |
WeightedMaps.createWeightedMap(WeightedMap<? extends E> weightedMap)
Create and return a new weighted map with the elements and weights
in the specified weighted map.
|
Constructor and Description |
---|
HashWeightedMap(WeightedMap<? extends E> weightedMap)
Create a new weighted map with the elements and weights
in the specified weighted map (copy constructor).
|
Copyright (c) 2005-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).