|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bak.pcj.map.MapDefaults
This class implements methods for retrieving default values for each of the primitive types. The default values are returned by the maps' get()-methods when a specified key does not map to any value.
Note: Later versions may provide the ability to configure the default values returned by maps.
Constructor Summary | |
MapDefaults()
|
Method Summary | |
static boolean |
defaultBoolean()
Returns a default boolean value (false). |
static byte |
defaultByte()
Returns a default byte value (0). |
static char |
defaultChar()
Returns a default char value ('\0'). |
static double |
defaultDouble()
Returns a default double value (0.0). |
static float |
defaultFloat()
Returns a default float value (0.0f). |
static int |
defaultInt()
Returns a default int value (0). |
static long |
defaultLong()
Returns a default long value (0L). |
static short |
defaultShort()
Returns a default short value (0). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapDefaults()
Method Detail |
public static boolean defaultBoolean()
public static char defaultChar()
public static byte defaultByte()
public static short defaultShort()
public static int defaultInt()
public static long defaultLong()
public static float defaultFloat()
public static double defaultDouble()
|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |