Java Collection Equal equalCollection(Collection c1, Collection c2)

Here you can find the source of equalCollection(Collection c1, Collection c2)

Description

equal Collection

License

Apache License

Declaration

@SuppressWarnings({ "rawtypes", "unchecked" })
    public static boolean equalCollection(Collection c1, Collection c2) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

public class Main {
    @SuppressWarnings({ "rawtypes", "unchecked" })
    public static boolean equalCollection(Collection c1, Collection c2) {
        return c1.containsAll(c2) && c2.containsAll(c1);
    }//w w  w.j  a  v  a  2s  .co  m
}

Related

  1. content_equality(Collection A, Collection B)
  2. contentEquals(Collection l1, Collection l2)
  3. contentEquals(Collection list1, Collection list2)
  4. equal(Collection i1, Collection i2)
  5. equal(Collection col1, Collection col2)
  6. equalContent(Collection col1, Collection col2)
  7. equalContent(final Collection a, final Collection b)
  8. equals(Collection c1, Collection c2)
  9. equals(Collection collection1, Collection collection2)