|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.util.Utilities
public class Utilities
Offers different utilities.
Field Summary | |
---|---|
static int |
BYTE_SIZE
Size in bits of the byte |
static int |
INT_SIZE
Size in bits of the int |
static int |
LONG_SIZE
Size in bits of the long |
Constructor Summary | |
---|---|
Utilities()
|
Method Summary | |
---|---|
static byte[] |
generateByteHash(java.lang.String data)
Generate a hash code from specified data. |
static int[] |
generateIntHash(java.lang.String data)
Generate a hash code from specified data. |
static boolean |
parseBoolean(java.lang.String txt)
Parses the string argument as a boolean. |
static int[] |
toIntArray(byte[] data)
Change a byte array to int array |
static int[] |
toIntArray(java.lang.String data)
Change a byte array to int array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int INT_SIZE
public static int LONG_SIZE
public static int BYTE_SIZE
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
public static int[] toIntArray(byte[] data)
data
- byte array to change to int array
public static int[] toIntArray(java.lang.String data)
data
- byte array to change to int array
public static int[] generateIntHash(java.lang.String data)
data
- String to obtain its hash code.
public static byte[] generateByteHash(java.lang.String data)
data
- String to obtain its hash code.
public static boolean parseBoolean(java.lang.String txt)
txt
- The String containing the boolean representation to be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |