Java List Equal equalLists(List list1, List list2)

Here you can find the source of equalLists(List list1, List list2)

Description

equal Lists

License

Open Source License

Declaration

@SuppressWarnings("unchecked")
    public static boolean equalLists(List list1, List list2) 

Method Source Code

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

import java.util.List;

public class Main {
    @SuppressWarnings("unchecked")
    public static boolean equalLists(List list1, List list2) {
        return (list1.containsAll(list2) && list2.containsAll(list1));
    }//  w w w.j  a v  a  2 s .  c o  m
}

Related

  1. equal(List coll, List otherColl)
  2. equal(List objects)
  3. equal(List v1, List v2)
  4. equalLists(List a, List b)
  5. equalLists(List aV1, List aV2)
  6. equalLists(List list1, List list2)
  7. equalLists(List one, List two)
  8. equalLists(List a, List b)
  9. equals(final List fromList, final List key, final int start)