Objects

Class Objects

public final class Objects
extends Object

This class consists of static utility methods for operating on objects. These utilities include null-safe or null-tolerant methods for computing the hash code of an object, returning a string for an object, and comparing two objects.

Since:
1.7

Methods

equals

public static boolean equals(Object a,
                             Object b)

Returns true if the arguments are equal to each other and false otherwise. Consequently, if both arguments are null,