Lines Matching refs:hashCode
27 * <p>Useful to implement a {@link Object#hashCode} for uniformly distributed data.</p>
33 public static int hashCode(int[] array) {
40 * and used elsewhere in the runtime (e.g. Arrays#hashCode)
57 * <p>Useful to implement a {@link Object#hashCode} for uniformly distributed data.</p>
63 public static int hashCode(float[] array) {
80 * <p>Useful to implement a {@link Object#hashCode} for uniformly distributed data.</p>
86 public static <T> int hashCode(T[] array) {
93 int x = (o == null) ? 0 : o.hashCode();
100 public static <T> int hashCode(T a) {
101 return (a == null) ? 0 : a.hashCode();
104 public static <T> int hashCode(T a, T b) {
105 int h = hashCode(a);
107 int x = (b == null) ? 0 : b.hashCode();
113 public static <T> int hashCode(T a, T b, T c) {
114 int h = hashCode(a, b);
116 int x = (c == null) ? 0 : c.hashCode();
122 public static <T> int hashCode(T a, T b, T c, T d) {
123 int h = hashCode(a, b, c);
125 int x = (d == null) ? 0 : d.hashCode();
131 public static int hashCode(int x) {
132 return hashCode(new int[] { x } );
135 public static int hashCode(int x, int y) {
136 return hashCode(new int[] { x, y } );
139 public static int hashCode(int x, int y, int z) {
140 return hashCode(new int[] { x, y, z } );
143 public static int hashCode(int x, int y, int z, int w) {
144 return hashCode(new int[] { x, y, z, w } );
147 public static int hashCode(int x, int y, int z, int w, int t) {
148 return hashCode(new int[] { x, y, z, w, t } );