| Modifier and Type | Field and Description |
|---|---|
| public static final Collection | |
| public static final List | |
| public static final Map | |
| public static final float | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> List | |
| public static int | Returns: The proper size.The original map original)Given a map, determine the proper initial size for a new Map to hold the same number of values. |
| public static int | Returns: The proper size.The original set original)Given a set, determine the proper initial size for a new set to hold the same number of values. |
| public static int | Returns: The proper size.The number of elements to be stored. numberOfElements)Determine the proper initial size for a new collection in order for it to hold the given a number of elements. |
| public static Map | Returns: The sized map.The size to make the map. size)Build a properly sized map, especially handling load size and load factor to prevent immediate resizing. |
| EMPTY_COLLECTION | back to summary |
|---|---|
| public static final Collection<E> EMPTY_COLLECTION | |
| EMPTY_LIST | back to summary |
|---|---|
| public static final List<E> EMPTY_LIST | |
| EMPTY_MAP | back to summary |
|---|---|
| public static final Map<K, V> EMPTY_MAP | |
| LOAD_FACTOR | back to summary |
|---|---|
| public static final float LOAD_FACTOR | |
| MINIMUM_INITIAL_CAPACITY | back to summary |
|---|---|
| public static final int MINIMUM_INITIAL_CAPACITY | |
| CollectionHelper | back to summary |
|---|---|
| private CollectionHelper() | |
| arrayList | back to summary |
|---|---|
| public static <T> List | |
| determineProperSizing | back to summary |
|---|---|
| public static int determineProperSizing(Map<K, V> original) Given a map, determine the proper initial size for a new Map to hold the same number of values. Specifically we want to account for load size and load factor to prevent immediate resizing.
| |
| determineProperSizing | back to summary |
|---|---|
| public static int determineProperSizing(Set<E> original) Given a set, determine the proper initial size for a new set to hold the same number of values. Specifically we want to account for load size and load factor to prevent immediate resizing.
| |
| determineProperSizing | back to summary |
|---|---|
| public static int determineProperSizing(int numberOfElements) Determine the proper initial size for a new collection in order for it to hold the given a number of elements. Specifically we want to account for load size and load factor to prevent immediate resizing.
| |
| mapOfSize | back to summary |
|---|---|
| public static Map Build a properly sized map, especially handling load size and load factor to prevent immediate resizing. Especially helpful for copy map contents.
| |