KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > util > CollectionHelper


1 //$Id: CollectionHelper.java,v 1.2 2005/07/16 22:20:48 oneovthafew Exp $
2
package org.hibernate.util;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.Collection JavaDoc;
6 import java.util.Collections JavaDoc;
7 import java.util.HashMap JavaDoc;
8 import java.util.List JavaDoc;
9 import java.util.Map JavaDoc;
10
11 /**
12  * @author Gavin King
13  */

14 public final class CollectionHelper {
15
16     public static final List JavaDoc EMPTY_LIST = Collections.unmodifiableList( new ArrayList JavaDoc(0) );
17     public static final Collection JavaDoc EMPTY_COLLECTION = Collections.unmodifiableCollection( new ArrayList JavaDoc(0) );
18     public static final Map JavaDoc EMPTY_MAP = Collections.unmodifiableMap( new HashMap JavaDoc(0) );
19     
20     private CollectionHelper() {}
21
22 }
23
Popular Tags