|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.rubecula.util.Presentation
|
+--com.rubecula.jquantity.IntegerPresentation
Presentation class to deal with integral objects in radix 10.
| Field Summary | |
(package private) java.lang.String |
_String
The integer as a string, without the radix. |
| Fields inherited from class com.rubecula.util.Presentation |
$empty, $Stars |
| Constructor Summary | |
IntegerPresentation(java.lang.String integer)
|
|
| Method Summary | |
java.lang.String |
audit(java.lang.String label)
Method to return a detailed string from an object for debugging purposes. |
java.lang.String |
getIdentifier()
Method to get the specific identifier for an object. |
static void |
main(java.lang.String[] args)
Main method for testing this class. |
Presentable |
parse()
Convert this Presentation into a Presentable object. |
(package private) static int |
StringToInt(java.lang.String s)
|
(package private) static int |
StringToInt(java.lang.String s,
int radix)
|
(package private) java.math.BigInteger |
toBigInteger()
Return this in the form of a BigInteger. |
(package private) java.math.BigInteger |
toBigInteger(int radix)
Return this in the form of a BigInteger interpreted in radix. |
java.lang.String |
toString(int width)
Render this Presentation as a String with the given width limitation. |
| Methods inherited from class com.rubecula.util.Presentation |
audit, audit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
java.lang.String _String
| Constructor Detail |
public IntegerPresentation(java.lang.String integer)
throws PresentationException
| Method Detail |
public static void main(java.lang.String[] args)
args - String[] : the command line options.public java.lang.String toString(int width)
toString in class Presentationwidth - the maximum number of characters allowed for depiction of
this presentation.
public Presentable parse()
throws PresentationException
parse in class PresentationPresentationExceptionpublic java.lang.String audit(java.lang.String label)
Auditable
audit in interface Auditablelabel - the label to associate with the data.
If label is non-null, a more detailed audit will be returned (this
normally occurs only at the top level).
public java.lang.String getIdentifier()
Auditable
getIdentifier in interface Auditablefinal java.math.BigInteger toBigInteger()
final java.math.BigInteger toBigInteger(int radix)
radix - the base of number in which to interpret this integer
presentation.
static int StringToInt(java.lang.String s)
static int StringToInt(java.lang.String s,
int radix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||