Code example for Collection

Methods: equals

0
  } 
 
  public static void assertEquals(Collection<?> arg0, Collection<?> arg1) {
    if (arg0 == null && arg1 == null)
      return; 
    if ((arg0 != null && arg0.equals(arg1)) || (arg1 != null && arg1.equals(arg0)))
      return; 
    failNotEquals(null, arg0, arg1);
  } 
   
  public static void assertEquals(byte[] arg0, byte[] arg1) {
    if (Arrays.equals(arg0, arg1))
      return; 
    failNotEquals(null, arg0, arg1);
  } 
} 
Experience pair programming with AI  Get Codota for Java