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, toShort
public LongValue(long value)
value
- The value of the LongValue as type longpublic boolean equals(Object obj)
public boolean equalsValue(String defaultValue)
equalsValue
in class ScalarValue
defaultValue
- The string to be convereted to an integer and comparedpublic NumericValue increment()
increment
in class NumericValue
public NumericValue decrement()
decrement
in class NumericValue
public String toString()
toString
in class ScalarValue
public Object toObject()
toObject
in class ScalarValue
public NumericValue subtract(NumericValue subend)
subtract
in class NumericValue
subend
- The NumericValue to be subtractedpublic NumericValue add(NumericValue addend)
add
in class NumericValue
addend
- The NumericValue to be addedpublic String serialize()
serialize
in class ScalarValue
public boolean equals(int value)
equals
in class NumericValue
value
- The integer to be comparedpublic long toLong()
toLong
in class NumericValue
public int toInt()
toInt
in class NumericValue
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.