Project Wonder 2.0

er.extensions
Class ERXConstant

java.lang.Object
  extended byer.extensions.ERXConstant

public class ERXConstant
extends Object

Collection of base constants. Note that upon class initialization 2500 Integers will be created and cached, from 0 - 2499.


Field Summary
static NSArray EmptyArray
           
static Class[] EmptyClassArray
           
static NSDictionary EmptyDictionary
           
static Object EmptyObject
           
static Object[] EmptyObjectArray
           
protected static Integer[] INTEGERS
           
static int MAX_INT
           
static Integer MinusOneInteger
           
static Class[] NotificationClassArray
           
static Class[] ObjectClassArray
           
static BigDecimal OneBigDecimal
           
static Integer OneInteger
           
static Class[] StringClassArray
           
static Integer ThreeInteger
           
static Integer TwoInteger
           
static BigDecimal ZeroBigDecimal
           
static Integer ZeroInteger
           
 
Constructor Summary
ERXConstant()
           
 
Method Summary
static Integer integerForInt(int i)
          Returns an Integer for a given int
static Integer integerForString(String s)
          Returns an Integer for a given String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_INT

public static final int MAX_INT
See Also:
Constant Field Values

INTEGERS

protected static Integer[] INTEGERS

EmptyObject

public static final Object EmptyObject

EmptyArray

public static final NSArray EmptyArray

EmptyDictionary

public static final NSDictionary EmptyDictionary

MinusOneInteger

public static final Integer MinusOneInteger

OneInteger

public static final Integer OneInteger

ZeroInteger

public static final Integer ZeroInteger

TwoInteger

public static final Integer TwoInteger

ThreeInteger

public static final Integer ThreeInteger

ZeroBigDecimal

public static final BigDecimal ZeroBigDecimal

OneBigDecimal

public static final BigDecimal OneBigDecimal

EmptyClassArray

public static final Class[] EmptyClassArray

NotificationClassArray

public static final Class[] NotificationClassArray

ObjectClassArray

public static final Class[] ObjectClassArray

StringClassArray

public static final Class[] StringClassArray

EmptyObjectArray

public static final Object[] EmptyObjectArray
Constructor Detail

ERXConstant

public ERXConstant()
Method Detail

integerForInt

public static Integer integerForInt(int i)
Returns an Integer for a given int

Returns:
potentially cache Integer for a given int

integerForString

public static Integer integerForString(String s)
                                throws NumberFormatException
Returns an Integer for a given String

Returns:
potentially cache Integer for a given String
Throws:
NumberFormatException - forwarded from the parseInt method off of Integer

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.