Class LangUtils


  • public class LangUtils
    extends java.lang.Object
    A set of utility methods to help produce consistent Object#equals(Object) and Object#hashCode methods.
    Since:
    3.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int HASH_OFFSET  
      static int HASH_SEED  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean equals​(java.lang.Object obj1, java.lang.Object obj2)  
      static int hashCode​(int seed, boolean b)  
      static int hashCode​(int seed, int hashcode)  
      static int hashCode​(int seed, java.lang.Object obj)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • hashCode

        public static int hashCode​(int seed,
                                   int hashcode)
      • hashCode

        public static int hashCode​(int seed,
                                   java.lang.Object obj)
      • hashCode

        public static int hashCode​(int seed,
                                   boolean b)
      • equals

        public static boolean equals​(java.lang.Object obj1,
                                     java.lang.Object obj2)