@Test public void testEqualOverload() { char c1 = 'A', c2 = 'A'; assertTrue(Utilities.equals(c1, c2)); byte b1 = 65, b2 = 65; assertTrue(Utilities.equals(b1, b2)); short s1 = 65, s2 = 65; assertTrue(Utilities.equals(s1, s2)); int i1 = 65, i2 = 65; assertTrue(Utilities.equals(i1, i2)); long l1 = 65, l2 = 65; assertTrue(Utilities.equals(l1, l2)); float f1 = 65, f2 = 65; assertTrue(Utilities.equals(f1, f2)); double d1 = 65, d2 = 65; assertTrue(Utilities.equals(d1, d2)); Character C1 = c1, C2 = Character.valueOf(c2); assertTrue(Utilities.equals(C1, C2)); Byte B1 = b1, B2 = Byte.valueOf(b2); assertTrue(Utilities.equals(B1, B2)); Short S1 = s1, S2 = Short.valueOf(s2); assertTrue(Utilities.equals(S1, S2)); Integer I1 = i1, I2 = Integer.valueOf(i2); assertTrue(Utilities.equals(I1, I2)); Long L1 = l1, L2 = Long.valueOf(l2); assertTrue(Utilities.equals(L1, L2)); Float F1 = f1, F2 = Float.valueOf(f2); assertTrue(Utilities.equals(F1, F2)); Double D1 = d1, D2 = Double.valueOf(d2); assertTrue(Utilities.equals(D1, D2)); assertTrue(Utilities.equals(f1, d2)); assertTrue(Utilities.equals(i1, b2)); assertTrue(Utilities.equals(f1, b2)); assertTrue(Utilities.equals(f1, c2)); assertTrue(Utilities.equals(c1, i2)); assertTrue(Utilities.equals(c1, s2)); assertTrue(Utilities.equals(b1, c2)); assertFalse(Utilities.equals(F1, D2)); assertFalse(Utilities.equals(I1, B2)); assertFalse(Utilities.equals(F1, B2)); assertFalse(Utilities.equals(F1, C2)); assertFalse(Utilities.equals(C1, I2)); assertFalse(Utilities.equals(C1, S2)); assertFalse(Utilities.equals(B1, C2)); }
public static boolean equals(boolean o1, boolean o2) { return o1 == o2; }
Utilities { public static boolean equals(boolean o1, boolean o2) { return o1 == o2; } }
Utilities { public static boolean equals(boolean o1, boolean o2) { return o1 == o2; } private  Utilities(); }
Utilities { public static boolean equals(boolean o1, boolean o2) { return o1 == o2; } private  Utilities(); static boolean equals(boolean o1, boolean o2); static boolean equals(char o1, char o2); static boolean equals(byte o1, byte o2); static boolean equals(short o1, short o2); static boolean equals(int o1, int o2); static boolean equals(long o1, long o2); static boolean equals(float o1, float o2); static boolean equals(double o1, double o2); static boolean equals(final Object object1, final Object object2); static boolean deepEquals(final Object object1, final Object object2); static int hash(boolean value, int seed); static int hash(char value, int seed); static int hash(int value, int seed); static int hash(long value, int seed); static int hash(float value, int seed); static int hash(double value, int seed); static int hash(Object value, int seed); static int deepHashCode(final Object object); static String deepToString(final Object object); @SuppressWarnings("unchecked") static Queue<E> emptyQueue(); static String spaces(int length); static void ensureNonNull(final String name, final Object object); static void ensureArgumentNonNull(final String name, final Object object); static Stream<T> stream(Iterable<T> iterable); static Stream<T> stream(Iterator<T> iterator); static Stream<T> stream(Optional<T> optional); static Stream<Class<? extends U>> streamIfSubtype(
            Class<T> type, Class<U> supertype); static Collector<T, ?, Set<T>> toUnmodifiableSet(); static Collector<T, ?, Map<String, T>> toInstanceByClassNameMap(); static final void assertNotZipSlipVulnarable(File file, Path destinationDir); }
Utilities { public static boolean equals(boolean o1, boolean o2) { return o1 == o2; } private  Utilities(); static boolean equals(boolean o1, boolean o2); static boolean equals(char o1, char o2); static boolean equals(byte o1, byte o2); static boolean equals(short o1, short o2); static boolean equals(int o1, int o2); static boolean equals(long o1, long o2); static boolean equals(float o1, float o2); static boolean equals(double o1, double o2); static boolean equals(final Object object1, final Object object2); static boolean deepEquals(final Object object1, final Object object2); static int hash(boolean value, int seed); static int hash(char value, int seed); static int hash(int value, int seed); static int hash(long value, int seed); static int hash(float value, int seed); static int hash(double value, int seed); static int hash(Object value, int seed); static int deepHashCode(final Object object); static String deepToString(final Object object); @SuppressWarnings("unchecked") static Queue<E> emptyQueue(); static String spaces(int length); static void ensureNonNull(final String name, final Object object); static void ensureArgumentNonNull(final String name, final Object object); static Stream<T> stream(Iterable<T> iterable); static Stream<T> stream(Iterator<T> iterator); static Stream<T> stream(Optional<T> optional); static Stream<Class<? extends U>> streamIfSubtype(
            Class<T> type, Class<U> supertype); static Collector<T, ?, Set<T>> toUnmodifiableSet(); static Collector<T, ?, Map<String, T>> toInstanceByClassNameMap(); static final void assertNotZipSlipVulnarable(File file, Path destinationDir);  }