Java List Equal equal(List v1, List v2)

Here you can find the source of equal(List v1, List v2)

Description

equal

License

Open Source License

Declaration

public static <T> boolean equal(List<T> v1, List<T> v2) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static <T> boolean equal(List<T> v1, List<T> v2) {
        return !v1.retainAll(v2);
    }//  ww  w  .j a  v  a 2 s.  c o m
}

Related

  1. areEqual(List a, List b)
  2. areEqual(List list1, List list2)
  3. areEqualConsideringOrder(List listA, List listB)
  4. equal(List coll, List otherColl)
  5. equal(List objects)
  6. equalLists(List a, List b)
  7. equalLists(List aV1, List aV2)
  8. equalLists(List list1, List list2)
  9. equalLists(List list1, List list2)