Package org.jparsec.internal.util
Class Objects
- java.lang.Object
-
- org.jparsec.internal.util.Objects
-
public final class Objects extends java.lang.ObjectUtility functions for any object.
-
-
Constructor Summary
Constructors Constructor Description Objects()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanequals(java.lang.Object o1, java.lang.Object o2)Compareso1ando2for equality.static inthashCode(java.lang.Object obj)Gets the has hcode forobj.static booleanin(java.lang.Object obj, java.lang.Object... array)Checks whetherobjis one of the elements ofarray.
-
-
-
Method Detail
-
hashCode
public static int hashCode(java.lang.Object obj)
Gets the has hcode forobj. 0 is returned if obj is null.
-
equals
public static boolean equals(java.lang.Object o1, java.lang.Object o2)Compareso1ando2for equality. Returns true if both arenulloro1.equals(o2).
-
in
public static boolean in(java.lang.Object obj, java.lang.Object... array)Checks whetherobjis one of the elements ofarray.
-
-