|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.DataObject
ewe.sys.Long
The ewe.sys.Long class was originally used to wrap java integral values instead of the standard java wrapper objects (java.lang.Integer, java.lang.Long, java.lang.Short, etc.)
| Field Summary | |
static int |
HEX
This is an option for toString(). |
static Long |
l1
|
static Long |
l2
|
static Long |
l3
|
static int |
TRUNCATE
This is an option for toString(). |
long |
value
|
static int |
ZERO_FILL
This is an option for toString(). |
| Constructor Summary | |
Long()
|
|
| Method Summary | |
int |
compareTo(Object other)
Compare this object with another. |
void |
copyFrom(Object other)
Copy all appropriate data from another object. |
boolean |
equals(Object other)
Returns if this object is considered equal to the other object. |
Long |
fromJavaWrapper(Object javaWrapper)
Place the value in the standard java Wrapper (e.g. |
void |
fromString(String str)
|
int |
hashCode()
Returns a hashCode for the object. |
Long |
set(long value)
|
Long |
set(Long value)
|
String |
toString()
Return a String representation of this object. |
String |
toString(int length,
int options)
Convert to a String. |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, copied, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass |
| Field Detail |
public long value
public static final Long l1
public static final Long l2
public static final Long l3
public static final int ZERO_FILL
public static final int TRUNCATE
public static final int HEX
| Constructor Detail |
public Long()
| Method Detail |
public Long set(long value)
public Long set(Long value)
public void copyFrom(Object other)
DataUnit
copyFrom in interface DataUnitcopyFrom in class DataObjectpublic String toString()
Object
toString in interface StringabletoString in class Objectpublic int compareTo(Object other)
Comparable
compareTo in interface ComparablecompareTo in class DataObject
public String toString(int length,
int options)
length - The length of the output String.options - Can be a combination of HEX (output in hexadecimal), ZERO_FILL (left pad to
length with zeros), TRUNCATE (truncate to be no longer than the specified length).
public void fromString(String str)
fromString in interface Stringablepublic boolean equals(Object other)
Object
equals in class DataObjectpublic int hashCode()
Object
hashCode in class Object
public Long fromJavaWrapper(Object javaWrapper)
throws IllegalArgumentException
javaWrapper - one of the java.lang primitive wrapper values representing an integer type.
IllegalArgumentException - if the javaWrapper parameter is not an integral or boolean value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||