Package io.micronaut.core.util
Class ObjectUtils
java.lang.Object
io.micronaut.core.util.ObjectUtils
Utility methods for working with objects
.- Since:
 - 4.0
 - Author:
 - Denis Stepanov
 
- 
Method Summary
 
- 
Method Details
- 
hash
Hashing method. Alternative toObjects.hash(Object...)without allocating an array.- Parameters:
 o1- The object 1o2- The object 2- Returns:
 - The hash
 - Since:
 - 4.0.0
 
 - 
hash
public static int hash(@Nullable @Nullable Object o1, @Nullable @Nullable Object o2, @Nullable @Nullable Object o3) Hashing method. Alternative toObjects.hash(Object...)without allocating an array.- Parameters:
 o1- The object 1o2- The object 2o3- The object 3- Returns:
 - The hash
 - Since:
 - 4.0.0
 
 - 
coerceToBoolean
Coerce the given object to boolean. The following cases are handled:nullresults infalse- empty strings result in 
false - positive numbers are 
true - empty collections, arrays, optionals and maps are 
false 
- Parameters:
 object- The object- Returns:
 - The boolean
 - Since:
 - 4.0.0
 
 
 -