| java.lang.Object com.metaboss.util.ObjectUtils
ObjectUtils | public class ObjectUtils (Code) | | Set of useful utilites to do with objects
|
Method Summary | |
public static boolean | equals(Object pObject1, Object pObject2) This method deals with null references and than just calls
standard equals method. | public static boolean | isFullArray(Object[] pArrayToTest) This helper method tests if given object array is full. | public static boolean | isInstance(Object pObjectToTest, Class[] pTypesToMatch) This helper method tests if given object is an instance of any of the
given classes. | public static String | pack(Object pSourceObject) This helper method converts object into string representing binary dump of object. | public static Object | unpack(String pSourceBuffer) This helper method converts object stored in the source string with binary dump of object into coresponding java object. |
equals | public static boolean equals(Object pObject1, Object pObject2)(Code) | | This method deals with null references and than just calls
standard equals method. Two nulls are considered equal
|
isFullArray | public static boolean isFullArray(Object[] pArrayToTest)(Code) | | This helper method tests if given object array is full.
Full array has non zero length and every element of the array initilised
to something other than null
Parameters: pArrayToTest - the array being tested true if given object aray is full |
isInstance | public static boolean isInstance(Object pObjectToTest, Class[] pTypesToMatch)(Code) | | This helper method tests if given object is an instance of any of the
given classes.
Parameters: pObjectToTest - the instance being tested Parameters: pTypesToMatch - the types to thest the instance against true if given object is an instance of one of the given types |
pack | public static String pack(Object pSourceObject) throws IOException(Code) | | This helper method converts object into string representing binary dump of object. It will only work
successfully on serializeable objects
|
|
|