public class Objects extends Object
| Constructor and Description |
|---|
Objects() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(Object a,
Object b)
Returns
true if the arguments are equal to each other
and false otherwise. |
public static boolean equals(Object a, Object b)
true if the arguments are equal to each other
and false otherwise.
Consequently, if both arguments are null, true
is returned and if exactly one argument is null, false is returned. Otherwise, equality is determined by using
the equals method of the first
argument.a - an objectb - an object to be compared with a for equalitytrue if the arguments are equal to each other
and false otherwiseObject.equals(Object)Copyright © 2024. All Rights Reserved.