Class Objects


  • public final class Objects
    extends java.lang.Object
    Utility functions for any object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Objects()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean equals​(java.lang.Object o1, java.lang.Object o2)
      Compares o1 and o2 for equality.
      static int hashCode​(java.lang.Object obj)
      Gets the has hcode for obj.
      static boolean in​(java.lang.Object obj, java.lang.Object... array)
      Checks whether obj is one of the elements of array.
      • Methods inherited from class java.lang.Object

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

      • Objects

        public Objects()
    • Method Detail

      • hashCode

        public static int hashCode​(java.lang.Object obj)
        Gets the has hcode for obj. 0 is returned if obj is null.
      • equals

        public static boolean equals​(java.lang.Object o1,
                                     java.lang.Object o2)
        Compares o1 and o2 for equality. Returns true if both are null or o1.equals(o2).
      • in

        public static boolean in​(java.lang.Object obj,
                                 java.lang.Object... array)
        Checks whether obj is one of the elements of array.