|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--Speichervergabe.Check
This class only contains some check-methods to use for validating inputs and some general help-routines
| Constructor Summary | |
Check()
|
|
| Method Summary | |
static int |
getInt(java.lang.String inputText)
Returns the int value of the given inputText, if no int return -1 |
static int |
getLog(int intValue)
Returns k, the solution of the equation: intValue = 2^k |
static int |
getNextPow(int intValue)
Returns the next power of 2 that is <= the given integer value. |
static boolean |
isInt(java.lang.String inputText)
Checks the given inputText to be an int or not. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Check()
| Method Detail |
public static boolean isInt(java.lang.String inputText)
public static int getInt(java.lang.String inputText)
public static int getLog(int intValue)
public static int getNextPow(int intValue)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||