LongBuffer.CompareTo(LongBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares this buffer to another.
[Android.Runtime.Register("compareTo", "(Ljava/nio/LongBuffer;)I", "GetCompareTo_Ljava_nio_LongBuffer_Handler")]
public virtual int CompareTo (Java.Nio.LongBuffer? that);
[<Android.Runtime.Register("compareTo", "(Ljava/nio/LongBuffer;)I", "GetCompareTo_Ljava_nio_LongBuffer_Handler")>]
abstract member CompareTo : Java.Nio.LongBuffer -> int
override this.CompareTo : Java.Nio.LongBuffer -> int
Parameters
- that
- LongBuffer
Returns
A negative integer, zero, or a positive integer as this buffer is less than, equal to, or greater than the given buffer
- Attributes
Exceptions
if otherBuffer
is not a long buffer.
Remarks
Compares this buffer to another.
Two long buffers are compared by comparing their sequences of remaining elements lexicographically, without regard to the starting position of each sequence within its corresponding buffer.
Pairs of long
elements are compared as if by invoking Long#compare(long,long)
.
A long buffer is not comparable to any other type of object.
Java documentation for java.nio.LongBuffer.compareTo(java.nio.LongBuffer)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.