com.braju.beta.lang
Class NumberVariable
java.lang.Object
|
+--java.lang.Number
|
+--com.braju.beta.lang.NumberVariable
- All Implemented Interfaces:
- java.io.Serializable, Variable
- Direct Known Subclasses:
- ByteVariable, DoubleVariable, FloatVariable, IntegerVariable, LongVariable, ShortVariable
- public abstract class NumberVariable
- extends java.lang.Number
- implements Variable
Super class for several classes such as DoubleVariable, LongVariable, etc
[JDK1.0.2 compatible].
- See Also:
- Serialized Form
Field Summary |
static int |
ALIGN_CENTER
When converting a number to a string with specified minimum width,
this constant says that the result should be aligned to the center. |
static int |
ALIGN_LEFT
When converting a number to a string with specified minimum width,
this constant says that the result should be aligned to the left. |
static int |
ALIGN_RIGHT
When converting a number to a string with specified minimum width,
this constant says that the result should be aligned to the right. |
static int |
LEADING_ZEROS
When converting a number to a string with a specified minimum width,
this constant says that the result should be filled up width leading
zero, i.e. |
static int |
NO_FLAGS
When converting a boolean to a string with specified minimum width,
this constant says that the default format should be used
[...]. |
static int |
SIGN_ALWAYS
When converting a number to a string,
this constant says that the result should always contain a sign. |
static int |
SIGN_MINUS
When converting a number to a string,
this constant says that the result should only contain a sign if then
value is less than zero. |
static int |
SIGN_SPACE
When converting a number to a string,
this constant says that the result should contain a negative sign if
value is less than zero, otherwise a space should occupy the sign position. |
Method Summary |
abstract java.lang.Object |
get()
|
abstract void |
set(java.lang.Object o)
|
Methods inherited from class java.lang.Number |
byteValue, doubleValue, floatValue, intValue, longValue, shortValue |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_FLAGS
public static final int NO_FLAGS
- When converting a boolean to a string with specified minimum width,
this constant says that the default format should be used
[...].
See also ALIGN_LEFT, ALIGN_CENTER and ALIGN_RIGHT.
ALIGN_LEFT
public static final int ALIGN_LEFT
- When converting a number to a string with specified minimum width,
this constant says that the result should be aligned to the left.
ALIGN_CENTER
public static final int ALIGN_CENTER
- When converting a number to a string with specified minimum width,
this constant says that the result should be aligned to the center.
ALIGN_RIGHT
public static final int ALIGN_RIGHT
- When converting a number to a string with specified minimum width,
this constant says that the result should be aligned to the right.
SIGN_MINUS
public static final int SIGN_MINUS
- When converting a number to a string,
this constant says that the result should only contain a sign if then
value is less than zero.
SIGN_ALWAYS
public static final int SIGN_ALWAYS
- When converting a number to a string,
this constant says that the result should always contain a sign.
SIGN_SPACE
public static final int SIGN_SPACE
- When converting a number to a string,
this constant says that the result should contain a negative sign if
value is less than zero, otherwise a space should occupy the sign position.
LEADING_ZEROS
public static final int LEADING_ZEROS
- When converting a number to a string with a specified minimum width,
this constant says that the result should be filled up width leading
zero, i.e. no spaces.
NumberVariable
public NumberVariable()
set
public abstract void set(java.lang.Object o)
- Specified by:
set
in interface Variable
get
public abstract java.lang.Object get()
- Specified by:
get
in interface Variable
Copyright 1997-2000, Henrik Bengtsson.