Named as such to avoid clash with java.util.Objects.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final BiPredicate |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the comparison resultthe first value v1, int the second value v2)Compares two integer values similar to Integer.compare. |
| public static int | Returns: the comparison resultthe first value v1, long the second value v2)Compares two long values similar to Long.compare. |
| public static boolean | |
| public static < the value type T> BiPredicate | Returns: the bi-predicate instanceReturns a BiPredicate that compares its parameters via Objects.equals(). |
| public static int | |
| public static < the value type T> T | Returns: the object itselfthe object to verify object, String the message to use with the NullPointerException message)Verifies if the object is not null and returns it or throws a NullPointerException with the given message. |
| public static long | Returns: the valuethe value to check value, String the message to print message)
Deprecated
this method should not be used as there is no need
to check primitives for nullness.
Trap null-check attempts on primitives.
|
| public static int | Returns: valuethe value to validate value, String the parameter name of the value paramName)Validate that the given value is positive or report an IllegalArgumentException with the parameter name. |
| public static long | Returns: valuethe value to validate value, String the parameter name of the value paramName)Validate that the given value is positive or report an IllegalArgumentException with the parameter name. |
| EQUALS | back to summary |
|---|---|
| pack-priv static final BiPredicate<Object, Object> EQUALS | |
| ObjectHelper | back to summary |
|---|---|
| private ObjectHelper() Utility class. | |
| compare | back to summary |
|---|---|
| public static int compare(int v1, int v2) Compares two integer values similar to Integer.compare.
| |
| compare | back to summary |
|---|---|
| public static int compare(long v1, long v2) Compares two long values similar to Long.compare.
| |
| equals | back to summary |
|---|---|
| public static boolean equals(Object o1, Object o2) Compares two potentially null objects with each other using Object.equals. | |
| equalsPredicate | back to summary |
|---|---|
| public static <T> BiPredicate Returns a BiPredicate that compares its parameters via Objects.equals().
| |
| hashCode | back to summary |
|---|---|
| public static int hashCode(Object o) Returns the hashCode of a non-null object or zero for a null object.
| |
| requireNonNull | back to summary |
|---|---|
| public static <T> T requireNonNull(T object, String message) Verifies if the object is not null and returns it or throws a NullPointerException with the given message.
| |
| requireNonNull | back to summary |
|---|---|
| public static long requireNonNull(long value, String message)
Deprecated this method should not be used as there is no need to check primitives for nullness. Trap null-check attempts on primitives.
| |
| verifyPositive | back to summary |
|---|---|
| public static int verifyPositive(int value, String paramName) Validate that the given value is positive or report an IllegalArgumentException with the parameter name.
| |
| verifyPositive | back to summary |
|---|---|
| public static long verifyPositive(long value, String paramName) Validate that the given value is positive or report an IllegalArgumentException with the parameter name.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(Object
the first value o1, Object the second value o2)Implements io. |
| BiObjectPredicate | back to summary |
|---|---|
| pack-priv BiObjectPredicate() | |
| test | back to summary |
|---|---|
| public boolean test(Object o1, Object o2) Implements io. Doc from io. Test the given input values and return a boolean. | |