Package org.jparsec.internal.util
Class Objects
- java.lang.Object
-
- org.jparsec.internal.util.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)
Compareso1
ando2
for equality.static int
hashCode(java.lang.Object obj)
Gets the has hcode forobj
.static boolean
in(java.lang.Object obj, java.lang.Object... array)
Checks whetherobj
is 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)
Compareso1
ando2
for equality. Returns true if both arenull
oro1.equals(o2)
.
-
in
public static boolean in(java.lang.Object obj, java.lang.Object... array)
Checks whetherobj
is one of the elements ofarray
.
-
-