long on unix-based platforms).
May optionally indicate an unsigned attribute, such that when a value is
extracted into a larger-sized container (e.g. int retrieved
via Number#longValue, the value will be unsigned. Default behavior
is signed.
| Modifier and Type | Field and Description |
|---|---|
| private Number | |
| private static final long | |
| private int | |
| private boolean | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | IntegerType(int size, long value, boolean unsigned)
Create an optionally signed IntegerType with the given value. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the derived integer type T extends IntegerType> int | Returns: 0 if values are equal - including if both arenull,
negative if 1st value less than 2nd one, positive otherwiseNote the comparison uses the The 1st value v1, T The 2nd value v2)Compares 2 derived |
| public static int | Returns: 0 if values are equal, negative if 1st value less than 2nd one, positive otherwiseNote the comparison uses the The v1, long IntegerType valueThe v2)long valueCompares a IntegerType value with a Note if
the IntegerType value is |
| public static final int | |
| public double | doubleValue()
Implements abstract java. double.
|
| public boolean | equals(Object
the reference object with which to compare. rhs)Overrides java. |
| public float | floatValue()
Implements abstract java. float.
|
| public Object | fromNative(Object
Java representation of the native type to be converted. nativeValue, FromNativeContext Context in which the conversion is taking place. context)Implements com. |
| public int | |
| public int | intValue()
Implements abstract java. int.
|
| public long | longValue()
Implements abstract java. long.
|
| public Class | nativeType()
Implements com. |
| public void | |
| public Object | toNative()
Implements com. |
| public String |
| number | back to summary |
|---|---|
| private Number number | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| size | back to summary |
|---|---|
| private int size | |
| unsigned | back to summary |
|---|---|
| private boolean unsigned | |
| value | back to summary |
|---|---|
| private long value | |
| IntegerType | back to summary |
|---|---|
| public IntegerType(int size) Create a zero-valued signed IntegerType. | |
| IntegerType | back to summary |
|---|---|
| public IntegerType(int size, boolean unsigned) Create a zero-valued optionally unsigned IntegerType. | |
| IntegerType | back to summary |
|---|---|
| public IntegerType(int size, long value) Create a signed IntegerType with the given value. | |
| IntegerType | back to summary |
|---|---|
| public IntegerType(int size, long value, boolean unsigned) Create an optionally signed IntegerType with the given value. | |
| compare | back to summary |
|---|---|
| public static <T extends IntegerType> int compare(T v1, T v2) Compares 2 derived
| |
| compare | back to summary |
|---|---|
| public static int compare(IntegerType v1, long v2) Compares a IntegerType value with a Note if
the IntegerType value is
| |
| compare | back to summary |
|---|---|
| public static final int compare(long v1, long v2) | |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object rhs) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| floatValue | back to summary |
|---|---|
| public float floatValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| fromNative | back to summary |
|---|---|
| public Object fromNative(Object nativeValue, FromNativeContext context) Implements com. Doc from com. Convert the given native object into its Java representation using the given context.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements abstract java. Doc from java. Returns the value of the specified number as an
| |
| longValue | back to summary |
|---|---|
| public long longValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| nativeType | back to summary |
|---|---|
| public Class Implements com. Doc from com. Indicate the native type used by this converter. | |
| setValue | back to summary |
|---|---|
| public void setValue(long value) Change the value for this data.
| |
| toNative | back to summary |
|---|---|
| public Object toNative() Implements com. Doc from com. Convert this object into a supported native type. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |