|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javautils.Objects
Static utility methods for dealing with objects.
Constructor Summary | |
Objects()
|
Method Summary | |
static java.lang.Boolean |
asObject(boolean x)
|
static java.lang.Byte |
asObject(byte x)
|
static java.lang.Character |
asObject(char x)
|
static java.lang.Double |
asObject(double x)
|
static java.lang.Float |
asObject(float x)
|
static java.lang.Integer |
asObject(int x)
|
static java.lang.Long |
asObject(long x)
|
static java.lang.Object |
asObject(java.lang.Object x)
Just returns the specified object. |
static java.lang.Short |
asObject(short x)
|
static boolean |
clone(boolean x)
|
static byte |
clone(byte x)
|
static char |
clone(char x)
|
static double |
clone(double x)
|
static float |
clone(float x)
|
static int |
clone(int x)
|
static long |
clone(long x)
|
static java.lang.Object |
clone(java.lang.Object o)
Clones the specified object. |
static short |
clone(short x)
|
static boolean |
equals(java.lang.Object lhs,
java.lang.Object rhs)
return lhs == rhs || null != lhs && lhs.equals(rhs); |
static int |
hashCode(java.lang.Object o)
return null == o ? 0 : o.hashCode(); |
static int |
rotateLeft(int value,
int n)
return value << n | value >>> 32-n; |
static boolean |
same(java.lang.Object lhs,
java.lang.Object rhs)
return lhs == rhs; |
static boolean |
sameClass(java.lang.Object lhs,
java.lang.Object rhs)
return null != lhs && null != rhs && lhs.getClass().equals(rhs.getClass()); |
static java.lang.String |
toString(java.lang.Object o)
return null != o ? o.toString() : "null"; |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Objects()
Method Detail |
public static java.lang.Object asObject(java.lang.Object x)
Just returns the specified object.
public static java.lang.Boolean asObject(boolean x)
public static java.lang.Byte asObject(byte x)
public static java.lang.Character asObject(char x)
public static java.lang.Double asObject(double x)
public static java.lang.Float asObject(float x)
public static java.lang.Integer asObject(int x)
public static java.lang.Long asObject(long x)
public static java.lang.Short asObject(short x)
public static java.lang.Object clone(java.lang.Object o)
Clones the specified object.
public static boolean clone(boolean x)
public static byte clone(byte x)
public static char clone(char x)
public static double clone(double x)
public static float clone(float x)
public static int clone(int x)
public static long clone(long x)
public static short clone(short x)
public static boolean equals(java.lang.Object lhs, java.lang.Object rhs)
return lhs == rhs || null != lhs && lhs.equals(rhs);
public static int hashCode(java.lang.Object o)
return null == o ? 0 : o.hashCode();
public static int rotateLeft(int value, int n)
return value << n | value >>> 32-n;
public static boolean same(java.lang.Object lhs, java.lang.Object rhs)
return lhs == rhs;
public static boolean sameClass(java.lang.Object lhs, java.lang.Object rhs)
return null != lhs && null != rhs && lhs.getClass().equals(rhs.getClass());
public static java.lang.String toString(java.lang.Object o)
return null != o ? o.toString() : "null";
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |