public class LongValue extends NumericValue
| Modifier and Type | Field and Description |
|---|---|
long |
value |
NULL, UNDEFINED| Constructor and Description |
|---|
LongValue(long value)
LongValue Constructor
|
| Modifier and Type | Method and Description |
|---|---|
NumericValue |
add(NumericValue addend)
Adds two Numeric Values values and creates a new LongValue with the new
value
|
NumericValue |
decrement()
Decrement 'value' and create a new LongValue with the new value
|
boolean |
equals(int value)
Finds if the passed value is the same as the Value of LongValue
|
boolean |
equals(Object obj)
Compares a LongValue object with another LongValue object
|
boolean |
equalsValue(String defaultValue)
Compares a string that is converted to an integer to the value of
LogValue
|
int |
hashCode() |
NumericValue |
increment()
Increment 'value' and create a new LongValue with the new value
|
String |
serialize() |
NumericValue |
subtract(NumericValue subend)
Subtracts two NumericValues values and creates a new LongValue with the
new value
|
int |
toInt() |
long |
toLong() |
Object |
toObject() |
String |
toString() |
copy, getBytes, isNull, isUndefined, toBigDecimal, toByte, toDouble, toShortpublic LongValue(long value)
value - The value of the LongValue as type longpublic boolean equals(Object obj)
public boolean equalsValue(String defaultValue)
equalsValue in class ScalarValuedefaultValue - The string to be convereted to an integer and comparedpublic NumericValue increment()
increment in class NumericValuepublic NumericValue decrement()
decrement in class NumericValuepublic String toString()
toString in class ScalarValuepublic Object toObject()
toObject in class ScalarValuepublic NumericValue subtract(NumericValue subend)
subtract in class NumericValuesubend - The NumericValue to be subtractedpublic NumericValue add(NumericValue addend)
add in class NumericValueaddend - The NumericValue to be addedpublic String serialize()
serialize in class ScalarValuepublic boolean equals(int value)
equals in class NumericValuevalue - The integer to be comparedpublic long toLong()
toLong in class NumericValuepublic int toInt()
toInt in class NumericValueCopyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.