Class Objects

java.lang.Object
org.jparsec.internal.util.Objects

public final class Objects extends Object
Utility functions for any object.
  • Constructor Details

    • Objects

      public Objects()
  • Method Details

    • hashCode

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

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

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