java.lang.Object | |
↳ | org.hibernate.util.CollectionHelper |
Various help for handling collections.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
float | LOAD_FACTOR | ||||||||||
int | MINIMUM_INITIAL_CAPACITY |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EMPTY_COLLECTION | |||||||||||
EMPTY_LIST | |||||||||||
EMPTY_MAP |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Given a map, determine the proper initial size for a new Map to hold the same number of values.
| |||||||||||
Determine the proper initial size for a new collection in order for it to hold the given a number of elements.
| |||||||||||
Given a set, determine the proper initial size for a new set to hold the same number of values.
| |||||||||||
Build a properly sized map, especially handling load size and load factor to prevent immediate resizing.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
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.
original | The original map |
---|
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.
numberOfElements | The number of elements to be stored. |
---|
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.
original | The original set |
---|
Build a properly sized map, especially handling load size and load factor to prevent immediate resizing.
Especially helpful for copy map contents.size | The size to make the map. |
---|