com.limegroup.gnutella.util
Class DataUtils

java.lang.Object
  extended bycom.limegroup.gnutella.util.DataUtils

public final class DataUtils
extends java.lang.Object

Utility class that supplies commonly used data sets that each class should not have to create on its own. These data sets are immutable objects, so any class and any thread may access them whenever they like.


Field Summary
static byte[] EMPTY_BYTE_ARRAY
          Constant empty byte array for any class to use -- immutable.
static byte[] EMPTY_GUID
          An 16-length empty byte array, for GUIDs.
static java.util.List EMPTY_LIST
          An empty list.
static java.util.Map EMPTY_MAP
          An empty map.
static java.util.Set EMPTY_SET
          Utility immutable emtpy set (not supported in 1.1.8 version of Collections class in collections).
static java.lang.String[] EMPTY_STRING_ARRAY
          Constant empty string array for any class to use -- immutable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_BYTE_ARRAY

public static byte[] EMPTY_BYTE_ARRAY
Constant empty byte array for any class to use -- immutable.


EMPTY_STRING_ARRAY

public static java.lang.String[] EMPTY_STRING_ARRAY
Constant empty string array for any class to use -- immutable.


EMPTY_SET

public static final java.util.Set EMPTY_SET
Utility immutable emtpy set (not supported in 1.1.8 version of Collections class in collections).


EMPTY_LIST

public static final java.util.List EMPTY_LIST
An empty list.


EMPTY_MAP

public static final java.util.Map EMPTY_MAP
An empty map.


EMPTY_GUID

public static final byte[] EMPTY_GUID
An 16-length empty byte array, for GUIDs.