|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedType
|
+--uk.ac.ic.doc.automed.wrappers.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, STRING, TIME, TUPLE |
| Constructor Summary | |
AutoMedInteger(int value,
int bits)
Create a new AutoMedInteger from a 32 bit integer value. |
|
AutoMedInteger(long value,
int bits)
Create a new AutoMedInteger |
|
| Method Summary | |
AutoMedInteger |
add(AutoMedInteger v)
Return the sum of two AutoMedIntegers. |
AutoMedInteger |
divide(AutoMedInteger v)
Return the division of two AutoMedIntegers. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AutoMedInteger(int value,
int bits)
public AutoMedInteger(long value,
int bits)
| Method Detail |
public int intValue()
public long longValue()
public 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 | |||||||||