|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.ksu.cis.calculator.ConvertBase
The convert base operation. Objects of this class are used to encapsulate a base change request.
Constructor Summary | |
ConvertBase(int b)
Constructs a new ConvertBase. |
Method Summary | |
int |
getBase()
Returns the new base. |
int |
numOperands()
Returns 0. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConvertBase(int b)
b
- The new base.
IllegalArgumentException
- If b < 2 or b > 36.Method Detail |
public int numOperands()
numOperands
in interface Operation
public int getBase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |