Class ListUtils


  • public final class ListUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ListUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean equivalent​(java.util.List a, java.util.List b)  
      static int hashContents​(java.util.List l)
      finds a hash value which takes into account the value of all elements, such that two sets for which equivalent(a, b) returns true will hashContents() to the same value
      static java.util.List oneElementUnmodifiableList​(java.lang.Object elem)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListUtils

        public ListUtils()
    • Method Detail

      • oneElementUnmodifiableList

        public static java.util.List oneElementUnmodifiableList​(java.lang.Object elem)
      • equivalent

        public static boolean equivalent​(java.util.List a,
                                         java.util.List b)
      • hashContents

        public static int hashContents​(java.util.List l)
        finds a hash value which takes into account the value of all elements, such that two sets for which equivalent(a, b) returns true will hashContents() to the same value