Package org.nd4j.common.io
Class ObjectUtils
- java.lang.Object
-
- org.nd4j.common.io.ObjectUtils
-
public abstract class ObjectUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ObjectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A,O extends A>
A[]addObjectToArray(A[] array, O obj)
static <E extends Enum<?>>
EcaseInsensitiveValueOf(E[] enumValues, String constant)
static boolean
containsConstant(Enum<?>[] enumValues, String constant)
static boolean
containsConstant(Enum<?>[] enumValues, String constant, boolean caseSensitive)
static boolean
containsElement(Object[] array, Object element)
static String
getDisplayString(Object obj)
static String
getIdentityHexString(Object obj)
static int
hashCode(boolean bool)
static int
hashCode(double dbl)
static int
hashCode(float flt)
static int
hashCode(long lng)
static String
identityToString(Object obj)
static boolean
isArray(Object obj)
static boolean
isCheckedException(Throwable ex)
static boolean
isCompatibleWithThrowsClause(Throwable ex, Class[] declaredExceptions)
static boolean
isEmpty(Object[] array)
static String
nullSafeClassName(Object obj)
static boolean
nullSafeEquals(Object o1, Object o2)
static int
nullSafeHashCode(boolean[] array)
static int
nullSafeHashCode(byte[] array)
static int
nullSafeHashCode(char[] array)
static int
nullSafeHashCode(double[] array)
static int
nullSafeHashCode(float[] array)
static int
nullSafeHashCode(int[] array)
static int
nullSafeHashCode(long[] array)
static int
nullSafeHashCode(short[] array)
static int
nullSafeHashCode(Object obj)
static int
nullSafeHashCode(Object[] array)
static String
nullSafeToString(boolean[] array)
static String
nullSafeToString(byte[] array)
static String
nullSafeToString(char[] array)
static String
nullSafeToString(double[] array)
static String
nullSafeToString(float[] array)
static String
nullSafeToString(int[] array)
static String
nullSafeToString(long[] array)
static String
nullSafeToString(short[] array)
static String
nullSafeToString(Object obj)
static String
nullSafeToString(Object[] array)
static Object[]
toObjectArray(Object source)
-
-
-
Method Detail
-
isCheckedException
public static boolean isCheckedException(Throwable ex)
-
isCompatibleWithThrowsClause
public static boolean isCompatibleWithThrowsClause(Throwable ex, Class[] declaredExceptions)
-
isArray
public static boolean isArray(Object obj)
-
isEmpty
public static boolean isEmpty(Object[] array)
-
containsConstant
public static boolean containsConstant(Enum<?>[] enumValues, String constant, boolean caseSensitive)
-
caseInsensitiveValueOf
public static <E extends Enum<?>> E caseInsensitiveValueOf(E[] enumValues, String constant)
-
addObjectToArray
public static <A,O extends A> A[] addObjectToArray(A[] array, O obj)
-
nullSafeHashCode
public static int nullSafeHashCode(Object obj)
-
nullSafeHashCode
public static int nullSafeHashCode(Object[] array)
-
nullSafeHashCode
public static int nullSafeHashCode(boolean[] array)
-
nullSafeHashCode
public static int nullSafeHashCode(byte[] array)
-
nullSafeHashCode
public static int nullSafeHashCode(char[] array)
-
nullSafeHashCode
public static int nullSafeHashCode(double[] array)
-
nullSafeHashCode
public static int nullSafeHashCode(float[] array)
-
nullSafeHashCode
public static int nullSafeHashCode(int[] array)
-
nullSafeHashCode
public static int nullSafeHashCode(long[] array)
-
nullSafeHashCode
public static int nullSafeHashCode(short[] array)
-
hashCode
public static int hashCode(boolean bool)
-
hashCode
public static int hashCode(double dbl)
-
hashCode
public static int hashCode(float flt)
-
hashCode
public static int hashCode(long lng)
-
nullSafeToString
public static String nullSafeToString(boolean[] array)
-
nullSafeToString
public static String nullSafeToString(byte[] array)
-
nullSafeToString
public static String nullSafeToString(char[] array)
-
nullSafeToString
public static String nullSafeToString(double[] array)
-
nullSafeToString
public static String nullSafeToString(float[] array)
-
nullSafeToString
public static String nullSafeToString(int[] array)
-
nullSafeToString
public static String nullSafeToString(long[] array)
-
nullSafeToString
public static String nullSafeToString(short[] array)
-
-