| java.lang.Object jodd.util.ObjectUtil
ObjectUtil | public class ObjectUtil (Code) | | Various object utilities.
|
equals | public static boolean equals(Object obj1, Object obj2)(Code) | | Safely compares two objects just like equals() would, except
it allows any of the 2 objects to be null .
true if arguments are equal, otherwise false |
equalsType | public static boolean equalsType(Object object, Object thiz)(Code) | | Non-symetric utility for comparing types of two objects. Useful for
Object.equals(Object) .
Parameters: object - equals() argument Parameters: thiz - current class that overrides equals() |
objectToByteArray | public static byte[] objectToByteArray(Object obj) throws IOException(Code) | | Serialize an object to byte array.
|
writeObject | public static void writeObject(File dest, Object object) throws IOException(Code) | | Writes serializable object to a file. Existing file will be overwritten.
|
|
|