public boolean equals (Object ob)

Overriding: java.lang.Object

Tells whether or not this buffer is equal to another object.

Two byte buffers are equal if, and only if,

  1. They have the same element type,

  2. They have the same number of remaining elements, and

  3. The two sequences of remaining elements, considered independently of their starting positions, are pointwise equal.

A byte buffer is not equal to any other type of object.

Parameters:
ob    The object to which this buffer is to be compared

Returns:  true if, and only if, this buffer is equal to the given object