In this tutorial, you will see the use of equals() method of LongBuffer class in java.
In this tutorial, you will see the use of equals() method of LongBuffer class in java.In this tutorial, we will check long buffer is equal to another buffer or not.
LongBuffer API:
The java.nio.LongBuffer class extends java.nio.Buffer class. It provides the following methods:
Return type | Method | Description |
static LongBuffer | allocate(int capacity) | The allocate(..)method allocate a new long buffer. |
boolean | equals(object obj) | The equals() method tells this buffer is equals or not to another object. If another buffer is not long buffer method returns false. |
abstract LongBuffer | put(long value) | The put(..)method write a given long value at current position. |
import java.nio.*;
|
C:\>jAva EqualBuffer Not equal Equal Not equal |