|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedType
uk.ac.ic.doc.automed.wrappers.AutoMedInteger
public class AutoMedInteger
Provides generic representation of integer values with up to 64 bit precision.
| Field Summary |
|---|
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
|---|
BOOLEAN, FLOAT, INTEGER, NULL_STR, STRING, TIME, TUPLE |
| Constructor Summary | |
|---|---|
AutoMedInteger()
Create a new AutoMedInteger that is a null value |
|
AutoMedInteger(java.math.BigInteger value)
Create a new AutoMedInteger from a BigInteger. |
|
AutoMedInteger(int value,
int bits)
Create a new AutoMedInteger from a 32 bit integer value. |
|
AutoMedInteger(long value,
int bits)
Create a new AutoMedInteger |
|
AutoMedInteger(java.lang.String text)
Create a new AutoMedInteger from text, creating a null value if the text cannon be parsed. |
|
| Method Summary | |
|---|---|
AutoMedInteger |
add(AutoMedInteger v)
Return the sum of two AutoMedIntegers. |
AutoMedInteger |
divide(AutoMedInteger v)
Return the division of two AutoMedIntegers. |
double |
doubleValue()
Return the value of this AutoMedInteger as a double |
boolean |
equals(AutoMedType v)
Test two AutoMedTypes for equality, performing conversions as appropriate. |
int |
getType()
Return the Type (INTEGER, TUPLE, ...) of this AutoMedType |
int |
intValue()
Return the value of this AutoMedInteger as an int |
long |
longValue()
Return the value of this AutoMedInteger as an long |
AutoMedInteger |
multiply(AutoMedInteger v)
Return the multiplication of two AutoMedIntegers. |
AutoMedInteger |
subtract(AutoMedInteger v)
Return the difference of two AutoMedIntegers. |
java.lang.String |
toString()
Return a string representation of this AutoMedInteger. |
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
|---|
isLiteral, isNull, isNumeric |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AutoMedInteger(java.lang.String text)
public AutoMedInteger(int value,
int bits)
public AutoMedInteger(long value,
int bits)
public AutoMedInteger(java.math.BigInteger value)
public AutoMedInteger()
| Method Detail |
|---|
public int intValue()
public long longValue()
public double doubleValue()
doubleValue in class AutoMedTypepublic AutoMedInteger add(AutoMedInteger v)
public AutoMedInteger subtract(AutoMedInteger v)
public AutoMedInteger divide(AutoMedInteger v)
public AutoMedInteger multiply(AutoMedInteger v)
public java.lang.String toString()
toString in class AutoMedTypepublic boolean equals(AutoMedType v)
AutoMedType
equals in class AutoMedTypepublic final int getType()
AutoMedType
getType in class AutoMedType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||