org.hibernate.util
Class CollectionHelper

java.lang.Object
  extended by org.hibernate.util.CollectionHelper

public final class CollectionHelper
extends Object

Various help for handling collections.

Author:
Gavin King, Steve Ebersole

Field Summary
static Collection EMPTY_COLLECTION
           
static List EMPTY_LIST
           
static Map EMPTY_MAP
           
 
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
 

Field Detail

EMPTY_LIST

public static final List EMPTY_LIST

EMPTY_COLLECTION

public static final Collection EMPTY_COLLECTION

EMPTY_MAP

public static final Map EMPTY_MAP
Method Detail

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