Package java.lang
Class Byte

Public Method equals

boolean equals(Object obj)

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

This method compares this object to the specified object. The result is true if and only if the argument is not null and is an Byte object that contains the same byte value as this object.

Example

   Byte eqA = new Byte("10");
   Byte eqB = new Byte("10");
   if (eqA.equals(eqB))
      Logger.log("correct: A eq B");

The comparison between eqA and eqB delivers a true result.