org.hibernate.util
Class CollectionHelper
java.lang.Object
org.hibernate.util.CollectionHelper
public final class CollectionHelper
- extends Object
Various help for handling collections.
- Author:
- Gavin King, Steve Ebersole
Method Summary |
static Map |
mapOfSize(int size)
Build a properly sized map, especially handling load size and load factor to prevent immediate resizing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_LIST
public static final List EMPTY_LIST
EMPTY_COLLECTION
public static final Collection EMPTY_COLLECTION
EMPTY_MAP
public static final Map EMPTY_MAP
mapOfSize
public static Map mapOfSize(int size)
- Build a properly sized map, especially handling load size and load factor to prevent immediate resizing.
Especially helpful for copy map contents.
- Parameters:
size
- The size to make the map.
- Returns:
- The sized map.
Copyright © null-null Red Hat Middleware, LLC. All Rights Reserved