org.hibernate.util
Class CollectionHelper

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

public final class CollectionHelper
extends java.lang.Object

Various help for handling collections.

Author:
Gavin King, Steve Ebersole

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

EMPTY_COLLECTION

public static final java.util.Collection EMPTY_COLLECTION

EMPTY_MAP

public static final java.util.Map EMPTY_MAP
Method Detail

mapOfSize

public static java.util.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 © 2009 Hibernate.org. All Rights Reserved.