| java.lang.Object org.cojen.util.KeyFactory
KeyFactory | public class KeyFactory (Code) | | KeyFactory generates keys which can be hashed or compared for any kind of
object including arrays, arrays of arrays, and null. All hashcode
computations, equality tests, and ordering comparsisons fully recurse into
arrays.
author: Brian S O'Neill |
Method Summary | |
static int | compare(boolean[] a, boolean[] b) | static int | compare(byte[] a, byte[] b) | static int | compare(char[] a, char[] b) | static int | compare(double[] a, double[] b) | static int | compare(float[] a, float[] b) | static int | compare(int[] a, int[] b) | static int | compare(long[] a, long[] b) | static int | compare(short[] a, short[] b) | static int | compare(Object[] a, Object[] b) | static int | compare(Object a, Object b) | public static Object | createKey(boolean[] obj) | public static Object | createKey(byte[] obj) | public static Object | createKey(char[] obj) | public static Object | createKey(double[] obj) | public static Object | createKey(float[] obj) | public static Object | createKey(int[] obj) | public static Object | createKey(long[] obj) | public static Object | createKey(short[] obj) | public static Object | createKey(Object[] obj) | public static Object | createKey(Object obj) | static boolean | equals(Object[] a, Object[] b) | static boolean | equals(Object a, Object b) | static int | hashCode(boolean[] a) | static int | hashCode(byte[] a) | static int | hashCode(char[] a) | static int | hashCode(double[] a) | static int | hashCode(float[] a) | static int | hashCode(int[] a) | static int | hashCode(long[] a) | static int | hashCode(short[] a) | static int | hashCode(Object[] a) | static int | hashCode(Object a) |
KeyFactory | protected KeyFactory()(Code) | | |
compare | static int compare(boolean[] a, boolean[] b)(Code) | | |
compare | static int compare(byte[] a, byte[] b)(Code) | | |
compare | static int compare(char[] a, char[] b)(Code) | | |
compare | static int compare(double[] a, double[] b)(Code) | | |
compare | static int compare(float[] a, float[] b)(Code) | | |
compare | static int compare(int[] a, int[] b)(Code) | | |
compare | static int compare(long[] a, long[] b)(Code) | | |
compare | static int compare(short[] a, short[] b)(Code) | | |
createKey | public static Object createKey(boolean[] obj)(Code) | | |
hashCode | static int hashCode(boolean[] a)(Code) | | |
hashCode | static int hashCode(byte[] a)(Code) | | |
hashCode | static int hashCode(char[] a)(Code) | | |
hashCode | static int hashCode(double[] a)(Code) | | |
hashCode | static int hashCode(float[] a)(Code) | | |
hashCode | static int hashCode(int[] a)(Code) | | |
hashCode | static int hashCode(long[] a)(Code) | | |
hashCode | static int hashCode(short[] a)(Code) | | |
|
|