Class Objects
- java.lang.Object
-
- com.github.mjeanroy.springmvc.view.mustache.commons.lang.Objects
-
public final class Objects extends Object
Static Object Utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equals(Object o1, Object o2)
Check, in a null-safe way, that o1 equals o2.static int
hashCode(Object... objects)
Compute hashcode of given objects.
-
-
-
Method Detail
-
equals
public static boolean equals(Object o1, Object o2)
Check, in a null-safe way, that o1 equals o2.- Parameters:
o1
- First object to check.o2
- Second object to check.- Returns:
true
ifo1
equalso2
,false
otherwise.
-
hashCode
public static int hashCode(Object... objects)
Compute hashcode of given objects.- Parameters:
objects
- List of objects.- Returns:
- Hash code value.
-
-