Package java.util
Class Locale

Public Method equals

boolean equals(Object obj)

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns true if this Locale is equal to another object. A Locale is deemed equal to another Locale with identical language, country, variant, and is unequal to all other objects.

Example

   Locale loc1 = Locale.GERMAN;
   Locale loc2 = (Locale)loc1.clone();
   Logger.log("" + loc1.equals(loc2));

The example above compares the two objects and writes the result to the logger.