|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dishevelled.weighted.WeightedMaps
public final class WeightedMaps
Static utility methods for WeightedMaps.
| Method Summary | ||
|---|---|---|
static
|
createWeightedMap()
Create and return a new weighted map with the default initial capacity and load factor. |
|
static
|
createWeightedMap(int initialCapacity)
Create and return new weighted map with the specified initial capacity and default load factor. |
|
static
|
createWeightedMap(int initialCapacity,
float loadFactor)
Create and return new weighted map with the specified initial capacity and load factor. |
|
static
|
createWeightedMap(WeightedMap<? extends E> weightedMap)
Create and return a new weighted map with the elements and weights in the specified weighted map. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <E> WeightedMap<E> createWeightedMap()
E - element type
public static <E> WeightedMap<E> createWeightedMap(int initialCapacity)
E - element typeinitialCapacity - initial capacity
public static <E> WeightedMap<E> createWeightedMap(int initialCapacity,
float loadFactor)
E - element typeinitialCapacity - initial capacityloadFactor - load factor
public static <E> WeightedMap<E> createWeightedMap(WeightedMap<? extends E> weightedMap)
E - element typeweightedMap - weighted map to copy, must not be null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||