Package java.lang
Class Boolean
Description:
Returns true if and only if the argument is not null and is a Boolean object that represents the same boolean value as this object.
Example
Boolean eqA = new Boolean("true");
Boolean eqB = new Boolean("true");
if (eqA.equals(eqB))
Logger.log("correct: A eq B");
The comparison between eqA and eqB delivers a true result.