public final class ObjectUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
arraysEqual(boolean[] a1,
boolean[] a2)
Determines whether the two boolean arrays are component-wise equal.
|
static boolean |
arraysEqual(byte[] a1,
byte[] a2)
Determines whether the two byte arrays are component-wise equal.
|
static boolean |
arraysEqual(char[] a1,
char[] a2)
Determines whether the two char arrays are component-wise equal.
|
static boolean |
arraysEqual(double[] a1,
double[] a2)
Determines whether the two double arrays are component-wise equal.
|
static boolean |
arraysEqual(float[] a1,
float[] a2)
Determines whether the two float arrays are component-wise equal.
|
static boolean |
arraysEqual(int[] a1,
int[] a2)
Determines whether the two int arrays are component-wise equal.
|
static boolean |
arraysEqual(long[] a1,
long[] a2)
Determines whether the two long arrays are component-wise equal.
|
static boolean |
arraysEqual(Object[] a1,
Object[] a2)
Determines whether the two Object arrays are component-wise equal.
|
static boolean |
arraysEqual(short[] a1,
short[] a2)
Determines whether the two short arrays are component-wise equal.
|
static String |
arrayToString(boolean[] a)
Converts the given array of booleans into a String.
|
static String |
arrayToString(byte[] a)
Converts the given array of bytes into a String.
|
static String |
arrayToString(char[] a)
Converts the given array of chars into a String.
|
static String |
arrayToString(double[] a)
Converts the given array of doubles into a String.
|
static String |
arrayToString(float[] a)
Converts the given array of floats into a String.
|
static String |
arrayToString(int[] a)
Converts the given array of ints into a String.
|
static String |
arrayToString(long[] a)
Converts the given array of longs into a String.
|
static String |
arrayToString(Object[] a)
Converts the given array of Objects into a String.
|
static String |
arrayToString(short[] a)
Converts the given array of shorts into a String.
|
static String |
colorToString(Color color)
Writes the given color object to the given output stream.
|
static boolean[] |
copy(boolean[] a)
Creates a copy of the given boolean array.
|
static byte[] |
copy(byte[] a)
Creates a copy of the given byte array.
|
static char[] |
copy(char[] a)
Creates a copy of the given char array.
|
static double[] |
copy(double[] a)
Creates a copy of the given double array.
|
static float[] |
copy(float[] a)
Creates a copy of the given float array.
|
static int[] |
copy(int[] a)
Creates a copy of the given int array.
|
static long[] |
copy(long[] a)
Creates a copy of the given long array.
|
static Object[] |
copy(Object[] a)
Creates a copy of the given array of objects.
|
static Object |
copy(Object src,
Object dest)
Copies source array into destination array, returning destination.
|
static short[] |
copy(short[] a)
Creates a copy of the given short array.
|
static boolean |
objectsEqual(Object o1,
Object o2)
Determines whether the two objects are equal.
|
static boolean[] |
stringToBooleanArray(String s)
Converts the given String into an array of booleans.
|
static byte[] |
stringToByteArray(String s)
Converts the given String into an array of bytes.
|
static char[] |
stringToCharArray(String s)
Converts the given String into an array of chars.
|
static Color |
stringToColor(String s)
Converts the given string into a Color object.
|
static double |
stringToDouble(String s)
Converts the given string into a double value.
|
static double[] |
stringToDoubleArray(String s)
Converts the given String into an array of doubles.
|
static float |
stringToFloat(String s)
Converts the given string into a float value.
|
static float[] |
stringToFloatArray(String s)
Converts the given String into an array of floats.
|
static int[] |
stringToIntArray(String s)
Converts the given String into an array of ints.
|
static long[] |
stringToLongArray(String s)
Converts the given String into an array of longs.
|
static short[] |
stringToShortArray(String s)
Converts the given String into an array of shorts.
|
static String[] |
stringToStringArray(String s)
Converts the given String into an array of Strings.
|
public static boolean arraysEqual(Object[] a1, Object[] a2)
public static boolean arraysEqual(boolean[] a1, boolean[] a2)
public static boolean arraysEqual(byte[] a1, byte[] a2)
public static boolean arraysEqual(char[] a1, char[] a2)
public static boolean arraysEqual(double[] a1, double[] a2)
public static boolean arraysEqual(float[] a1, float[] a2)
public static boolean arraysEqual(int[] a1, int[] a2)
public static boolean arraysEqual(long[] a1, long[] a2)
public static boolean arraysEqual(short[] a1, short[] a2)
public static boolean objectsEqual(Object o1, Object o2)
public static String[] stringToStringArray(String s)
public static boolean[] stringToBooleanArray(String s)
public static byte[] stringToByteArray(String s)
public static char[] stringToCharArray(String s)
public static double[] stringToDoubleArray(String s)
public static float[] stringToFloatArray(String s)
public static int[] stringToIntArray(String s)
public static long[] stringToLongArray(String s)
public static short[] stringToShortArray(String s)
public static double stringToDouble(String s)
public static float stringToFloat(String s)
public static Color stringToColor(String s)
public static String arrayToString(Object[] a)
public static String arrayToString(boolean[] a)
public static String arrayToString(byte[] a)
public static String arrayToString(char[] a)
public static String arrayToString(double[] a)
public static String arrayToString(float[] a)
public static String arrayToString(int[] a)
public static String arrayToString(long[] a)
public static String arrayToString(short[] a)
public static String colorToString(Color color)
public static boolean[] copy(boolean[] a)
public static byte[] copy(byte[] a)
public static char[] copy(char[] a)
public static double[] copy(double[] a)
public static float[] copy(float[] a)
public static int[] copy(int[] a)
public static long[] copy(long[] a)
public static short[] copy(short[] a)
Copyright © 2015–2022 SciJava. All rights reserved.