| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final float | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| public static void | |
| public static <T> ArrayList | |
| public static <K, S> Map | |
| public static String[] | |
| public static Properties | |
| public static <K, V> void | |
| public static <O> List | |
| public static <O> List | |
| public static < The map key type K, The map value type V> ConcurrentHashMap | Returns: The created map.The expected number of elements for the created map expectedNumberOfElements)Create a properly sized |
| public static < The map key type K, The map value type V> ConcurrentHashMap | Returns: The created map.The expected number of elements for the created map expectedNumberOfElements, float The collection load factor loadFactor)Create a properly sized |
| 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 boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static <K, V> LinkedHashMap | |
| public static <K, V> LinkedHashMap | Returns: The sized linked map.The size to make the map. size)Build a properly sized linked map, especially handling load size and load factor to prevent immediate resizing. |
| public static <K> LinkedHashSet | |
| public static <K> LinkedHashSet | Returns: The sized linked set.The size to make the set. size)Build a properly sized linked set, especially handling load size and load factor to prevent immediate resizing. |
| public static <T> List | |
| public static <T> List | |
| public static <X, Y> Map | |
| public static <K, V> HashMap | |
| public static <T> Set | |
| public static <K, V> Map | |
| public static <K, V, E> Map | |
| public static <K, V> HashMap | |
| public static <K, V> HashMap | 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. |
| public static <K> HashSet | |
| public static <T> Set | |
| public static <K> HashSet | Returns: The sized set.The size to make the set. size)Build a properly sized set, especially handling load size and load factor to prevent immediate resizing. |
| public static int | |
| public static int | |
| public static int | |
| public static Map | |
| public static Map | |
| public static Properties | |
| public static <X> Set | |
| public static Map | |
| public static <V> List | toSmallList(ArrayList<V> arrayList)
Use to convert ArrayList instances which will be retained for a long time, such as for the lifetime of the Hibernate ORM instance. |
| public static <K, V> Map | toSmallMap(final Map<K, V> map)
Use to convert Maps which will be retained for a long time, such as for the lifetime of the Hibernate ORM instance. |
| public static <T> Set | Returns: will never return null, but might return an immutable collection.Use to convert sets which will be retained for a long time, such as for the lifetime of the Hibernate ORM instance. |
| DEFAULT_LIST_CAPACITY | back to summary |
|---|---|
| public static final int DEFAULT_LIST_CAPACITY | |
| 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() | |
| applyToMap | back to summary |
|---|---|
| private static void applyToMap(Map<String, String> map, String... pairs) | |
| applyToMap | back to summary |
|---|---|
private static void applyToMap(Map<String, ?> map, Object... pairs)
| |
| applyToProperties | back to summary |
|---|---|
| public static void applyToProperties(Properties properties, Object... pairs) | |
| arrayList | back to summary |
|---|---|
| public static <T> ArrayList | |
| asMap | back to summary |
|---|---|
public static <K, S> Map
| |
| asPairs | back to summary |
|---|---|
| public static String[] asPairs(Map<String, String> map) | |
| asProperties | back to summary |
|---|---|
| public static Properties asProperties(Map<?, ?> map) | |
| collectMapEntries | back to summary |
|---|---|
public static <K, V> void collectMapEntries(BiConsumer<K, V> mapEntryConsumer, Object[] mappings)
| |
| combine | back to summary |
|---|---|
| public static <O> List | |
| combine | back to summary |
|---|---|
| public static <O> List | |
| concurrentMap | back to summary |
|---|---|
| public static <K, V> ConcurrentHashMap Create a properly sized
| |
| concurrentMap | back to summary |
|---|---|
| public static <K, V> ConcurrentHashMap Create a properly sized
| |
| 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.
| |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(Collection<E> collection) | |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(Map<K, V> map) | |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(Object[] objects) | |
| isNotEmpty | back to summary |
|---|---|
| public static boolean isNotEmpty(Collection<E> collection) | |
| isNotEmpty | back to summary |
|---|---|
| public static boolean isNotEmpty(Map<K, V> map) | |
| isNotEmpty | back to summary |
|---|---|
| public static boolean isNotEmpty(Object[] objects) | |
| linkedMap | back to summary |
|---|---|
| public static <K, V> LinkedHashMap Build a linked map whose size is unknown.
| |
| linkedMapOfSize | back to summary |
|---|---|
| public static <K, V> LinkedHashMap Build a properly sized linked map, especially handling load size and load factor to prevent immediate resizing. Especially helpful for copy map contents.
| |
| linkedSet | back to summary |
|---|---|
| public static <K> LinkedHashSet Build a linked set whose size is unknown.
| |
| linkedSetOfSize | back to summary |
|---|---|
| public static <K> LinkedHashSet Build a properly sized linked set, especially handling load size and load factor to prevent immediate resizing. Especially helpful for copy set contents.
| |
| listOf | back to summary |
|---|---|
| public static <T> List | |
| listOf | back to summary |
|---|---|
| public static <T> List | |
| makeCopy | back to summary |
|---|---|
| public static <X, Y> Map | |
| makeCopy | back to summary |
|---|---|
| public static <K, V> HashMap | |
| makeCopy | back to summary |
|---|---|
| public static <T> Set | |
| makeMap | back to summary |
|---|---|
| public static <K, V> Map | |
| makeMap | back to summary |
|---|---|
| public static <K, V, E> Map | |
| map | back to summary |
|---|---|
| public static <K, V> HashMap Build a map whose size is unknown.
| |
| mapOfSize | back to summary |
|---|---|
| public static <K, V> HashMap Build a properly sized map, especially handling load size and load factor to prevent immediate resizing. Especially helpful for copy map contents.
| |
| set | back to summary |
|---|---|
| public static <K> HashSet Build a set whose size is unknown.
| |
| setOf | back to summary |
|---|---|
| public static <T> Set | |
| setOfSize | back to summary |
|---|---|
| public static <K> HashSet Build a properly sized set, especially handling load size and load factor to prevent immediate resizing. Especially helpful for copy set contents.
| |
| size | back to summary |
|---|---|
| public static int size(List<?> values) | |
| size | back to summary |
|---|---|
| public static int size(Collection<?> values) | |
| size | back to summary |
|---|---|
| public static int size(Map<?, ?> values) | |
| toMap | back to summary |
|---|---|
| public static Map | |
| toMap | back to summary |
|---|---|
| public static Map | |
| toProperties | back to summary |
|---|---|
| public static Properties toProperties(Object... pairs) | |
| toSet | back to summary |
|---|---|
| public static <X> Set | |
| toSettingsMap | back to summary |
|---|---|
| public static Map | |
| toSmallList | back to summary |
|---|---|
| public static <V> List Use to convert ArrayList instances which will be retained for a long time, such as for the lifetime of the Hibernate ORM instance. The returned List might be immutable, but there is no guarantee of this: consider it immutable but don't rely on this. The goal is to save memory. | |
| toSmallMap | back to summary |
|---|---|
| public static <K, V> Map Use to convert Maps which will be retained for a long time, such as for the lifetime of the Hibernate ORM instance. The returned Map might be immutable, but there is no guarantee of this: consider it immutable but don't rely on this. The goal is to save memory. | |
| toSmallSet | back to summary |
|---|---|
| public static <T> Set Use to convert sets which will be retained for a long time, such as for the lifetime of the Hibernate ORM instance. The returned Set might be immutable, but there is no guarantee of this: consider it immutable but don't rely on this. The goal is to save memory.
| |