|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.util.Utilities
Offers different utilities.
Field Summary | |
static int |
BYTE_SIZE
Size in bits of the byte |
static int |
INT_AS_BYTES
Number of bytes for any int value. |
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 void |
toIntArray(int[] dst,
byte[] src)
Copy all bytes as int values. |
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 final int INT_SIZE
public static final int LONG_SIZE
public static final int BYTE_SIZE
public static final int INT_AS_BYTES
Constructor Detail |
public Utilities()
Method Detail |
public static void toIntArray(int[] dst, byte[] src)
dst
- int[] where to copy all bytes.src
- source byte[]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 |