| Modifier and Type | Field and Description |
|---|---|
| public static final int | HASH_CODE_PRIME
Prime number used to calculate the hash code of objects. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the arguments are deeply equal to each other, false otherwise.an object. o1, Object an object to be compared with o2)o1 for deep equality.
Deprecated
Use
Returns java. instead.
true if the arguments are deeply equal to each other, false otherwise.
|
| public static boolean | Returns: true if the arguments are arrays and deeply equal to each other, false otherwise.an object. o1, Object an object to be compared with o2)o1 for deep equality.
Deprecated
Use either
Returns java. or
java..
true if the arguments are arrays and deeply equal to each other, false otherwise.
|
| public static < the generic type to cast the given object to. T> T | Returns: the casted object, ornull if the given object is not to the given type.the object to cast. o, Class<T> the given type. type)Casts the given object to the given type only if the object is of the given type. |
| public static int | Returns: the hash code for the given objectthe given object. o)Returns the hash code for the given object. |
| public static String[] |
| HASH_CODE_PRIME | back to summary |
|---|---|
| public static final int HASH_CODE_PRIME Prime number used to calculate the hash code of objects. | |
| Objects | back to summary |
|---|---|
| private Objects() | |
| areEqual | back to summary |
|---|---|
| public static boolean areEqual(Object o1, Object o2)
Deprecated Use Returns
Two
| |
| areEqualArrays | back to summary |
|---|---|
| public static boolean areEqualArrays(Object o1, Object o2)
Deprecated Use either Returns
Once verified that the arguments are arrays, the algorithm in
| |
| castIfBelongsToType | back to summary |
|---|---|
| public static <T> T castIfBelongsToType(Object o, Class<T> type) Casts the given object to the given type only if the object is of the given type. If the object is not of the given
type, this method returns | |
| hashCodeFor | back to summary |
|---|---|
| public static int hashCodeFor(Object o) Returns the hash code for the given object. If the object is
| |
| namesOf | back to summary |
|---|---|
| public static String[] namesOf(Class<?>... types) Returns an array containing the names of the given types. | |