# MappedByteBuffer

public abstract class **MappedByteBuffer** extends [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html)  
A direct byte buffer whose content is a memory-mapped region of a file.

Mapped byte buffers are created via the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/FileChannel.html#map(java.nio.channels.FileChannel.MapMode,%20long,%20long)` method. This class
extends the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html` class with operations that are specific to
memory-mapped file regions.

A mapped byte buffer and the file mapping that it represents remain
valid until the buffer itself is garbage-collected.

The content of a mapped byte buffer can change at any time, for example
if the content of the corresponding region of the mapped file is changed by
this program or another. Whether or not such changes occur, and when they
occur, is operating-system dependent and therefore unspecified.

All or part of a mapped byte buffer may become
inaccessible at any time, for example if the mapped file is truncated. An
attempt to access an inaccessible region of a mapped byte buffer will not
change the buffer's content and will cause an unspecified exception to be
thrown either at the time of the access or at some later time. It is
therefore strongly recommended that appropriate precautions be taken to
avoid the manipulation of a mapped file by this program, or by a
concurrently running program, except to read or write the file's content.

Mapped byte buffers otherwise behave no differently than ordinary direct
byte buffers.

<br />

### Public Method Summary

|---|---|
| final [MappedByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/MappedByteBuffer.html) | [force](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/MappedByteBuffer.html#force())() Forces any changes made to this buffer's content to be written to the storage device containing the mapped file. |
| final boolean | [isLoaded](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/MappedByteBuffer.html#isLoaded())() Tells whether or not this buffer's content is resident in physical memory. |
| final [MappedByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/MappedByteBuffer.html) | [load](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/MappedByteBuffer.html#load())() Loads this buffer's content into physical memory. |

### Inherited Method Summary

From class [java.nio.ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html)

|---|---|
| static [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [allocate](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#allocate(int))(int capacity) Allocates a new byte buffer. |
| static [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [allocateDirect](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#allocateDirect(int))(int capacity) Allocates a new direct byte buffer. |
| final byte\[\] | [array](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#array())() Returns the byte array that backs this buffer *(optional operation)*. |
| final int | [arrayOffset](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#arrayOffset())() Returns the offset within this buffer's backing array of the first element of the buffer *(optional operation)*. |
| abstract [CharBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/CharBuffer.html) | [asCharBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#asCharBuffer())() Creates a view of this byte buffer as a char buffer. |
| abstract [DoubleBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/DoubleBuffer.html) | [asDoubleBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#asDoubleBuffer())() Creates a view of this byte buffer as a double buffer. |
| abstract [FloatBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/FloatBuffer.html) | [asFloatBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#asFloatBuffer())() Creates a view of this byte buffer as a float buffer. |
| abstract [IntBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/IntBuffer.html) | [asIntBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#asIntBuffer())() Creates a view of this byte buffer as an int buffer. |
| abstract [LongBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/LongBuffer.html) | [asLongBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#asLongBuffer())() Creates a view of this byte buffer as a long buffer. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [asReadOnlyBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#asReadOnlyBuffer())() Creates a new, read-only byte buffer that shares this buffer's content. |
| abstract [ShortBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ShortBuffer.html) | [asShortBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#asShortBuffer())() Creates a view of this byte buffer as a short buffer. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [clear](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#clear())() Clears this buffer. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [compact](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#compact())() Compacts this buffer *(optional operation)*. |
| int | [compareTo](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#compareTo(java.nio.ByteBuffer))([ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) that) Compares this buffer to another. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [duplicate](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#duplicate())() Creates a new byte buffer that shares this buffer's content. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) ob) Tells whether or not this buffer is equal to another object. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [flip](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#flip())() Flips this buffer. |
| abstract byte | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#get())() Relative *get* method. |
| [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#get(byte[],%20int,%20int))(byte\[\] dst, int offset, int length) Relative bulk *get* method. |
| abstract byte | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#get(int))(int index) Absolute *get* method. |
| [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#get(byte[]))(byte\[\] dst) Relative bulk *get* method. |
| abstract char | [getChar](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getChar())() Relative *get* method for reading a char value. |
| abstract char | [getChar](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getChar(int))(int index) Absolute *get* method for reading a char value. |
| abstract double | [getDouble](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getDouble(int))(int index) Absolute *get* method for reading a double value. |
| abstract double | [getDouble](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getDouble())() Relative *get* method for reading a double value. |
| abstract float | [getFloat](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getFloat())() Relative *get* method for reading a float value. |
| abstract float | [getFloat](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getFloat(int))(int index) Absolute *get* method for reading a float value. |
| abstract int | [getInt](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getInt(int))(int index) Absolute *get* method for reading an int value. |
| abstract int | [getInt](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getInt())() Relative *get* method for reading an int value. |
| abstract long | [getLong](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getLong(int))(int index) Absolute *get* method for reading a long value. |
| abstract long | [getLong](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getLong())() Relative *get* method for reading a long value. |
| abstract short | [getShort](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getShort(int))(int index) Absolute *get* method for reading a short value. |
| abstract short | [getShort](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#getShort())() Relative *get* method for reading a short value. |
| final boolean | [hasArray](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#hasArray())() Tells whether or not this buffer is backed by an accessible byte array. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#hashCode())() Returns the current hash code of this buffer. |
| abstract boolean | [isDirect](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#isDirect())() Tells whether or not this byte buffer is direct. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [limit](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#limit(int))(int newLimit) Sets this buffer's limit. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [mark](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#mark())() Sets this buffer's mark at its position. |
| final [ByteOrder](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteOrder.html) | [order](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#order())() Retrieves this buffer's byte order. |
| final [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [order](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#order(java.nio.ByteOrder))([ByteOrder](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteOrder.html) bo) Modifies this buffer's byte order. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [position](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#position(int))(int newPosition) Sets this buffer's position. |
| final [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#put(byte[]))(byte\[\] src) Relative bulk *put* method *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#put(byte))(byte b) Relative *put* method *(optional operation)*. |
| [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#put(byte[],%20int,%20int))(byte\[\] src, int offset, int length) Relative bulk *put* method *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#put(int,%20byte))(int index, byte b) Absolute *put* method *(optional operation)*. |
| [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#put(java.nio.ByteBuffer))([ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) src) Relative bulk *put* method *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putChar](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putChar(int,%20char))(int index, char value) Absolute *put* method for writing a char value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putChar](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putChar(char))(char value) Relative *put* method for writing a char value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putDouble](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putDouble(double))(double value) Relative *put* method for writing a double value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putDouble](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putDouble(int,%20double))(int index, double value) Absolute *put* method for writing a double value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putFloat](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putFloat(int,%20float))(int index, float value) Absolute *put* method for writing a float value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putFloat](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putFloat(float))(float value) Relative *put* method for writing a float value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putInt](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putInt(int,%20int))(int index, int value) Absolute *put* method for writing an int value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putInt](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putInt(int))(int value) Relative *put* method for writing an int value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putLong](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putLong(long))(long value) Relative *put* method for writing a long value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putLong](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putLong(int,%20long))(int index, long value) Absolute *put* method for writing a long value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putShort](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putShort(short))(short value) Relative *put* method for writing a short value *(optional operation)*. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [putShort](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#putShort(int,%20short))(int index, short value) Absolute *put* method for writing a short value *(optional operation)*. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [reset](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#reset())() Resets this buffer's position to the previously-marked position. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [rewind](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#rewind())() Rewinds this buffer. |
| abstract [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [slice](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#slice())() Creates a new byte buffer whose content is a shared subsequence of this buffer's content. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#toString())() Returns a string summarizing the state of this buffer. |
| static [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [wrap](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#wrap(byte[]))(byte\[\] array) Wraps a byte array into a buffer. |
| static [ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) | [wrap](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html#wrap(byte[],%20int,%20int))(byte\[\] array, int offset, int length) Wraps a byte array into a buffer. |

From class [java.nio.Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html)

|---|---|
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [array](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#array())() Returns the array that backs this buffer *(optional operation)*. |
| abstract int | [arrayOffset](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#arrayOffset())() Returns the offset within this buffer's backing array of the first element of the buffer *(optional operation)*. |
| final int | [capacity](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#capacity())() Returns this buffer's capacity. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [clear](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#clear())() Clears this buffer. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [flip](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#flip())() Flips this buffer. |
| abstract boolean | [hasArray](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#hasArray())() Tells whether or not this buffer is backed by an accessible array. |
| final boolean | [hasRemaining](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#hasRemaining())() Tells whether there are any elements between the current position and the limit. |
| abstract boolean | [isDirect](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#isDirect())() Tells whether or not this buffer is [*direct*](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer#direct). |
| abstract boolean | [isReadOnly](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#isReadOnly())() Tells whether or not this buffer is read-only. |
| final int | [limit](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#limit())() Returns this buffer's limit. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [limit](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#limit(int))(int newLimit) Sets this buffer's limit. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [mark](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#mark())() Sets this buffer's mark at its position. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [position](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#position(int))(int newPosition) Sets this buffer's position. |
| final int | [position](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#position())() Returns this buffer's position. |
| final int | [remaining](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#remaining())() Returns the number of elements between the current position and the limit. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [reset](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#reset())() Resets this buffer's position to the previously-marked position. |
| [Buffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html) | [rewind](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/Buffer.html#rewind())() Rewinds this buffer. |

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [java.lang.Comparable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Comparable.html)

|---|---|
| abstract int | [compareTo](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Comparable.html#compareTo(T))([ByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ByteBuffer.html) o) Compares this object with the specified object for order. |

## Public Methods

#### public final [MappedByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/MappedByteBuffer.html)
**force**
()

Forces any changes made to this buffer's content to be written to the
storage device containing the mapped file.

If the file mapped into this buffer resides on a local storage
device then when this method returns it is guaranteed that all changes
made to the buffer since it was created, or since this method was last
invoked, will have been written to that device.

If the file does not reside on a local device then no such guarantee
is made.

If this buffer was not mapped in read/write mode (`https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/FileChannel.MapMode.html#READ_WRITE`) then invoking this
method has no effect.

<br />

##### Returns

- This buffer

#### public final boolean
**isLoaded**
()

Tells whether or not this buffer's content is resident in physical
memory.

A return value of true implies that it is highly likely
that all of the data in this buffer is resident in physical memory and
may therefore be accessed without incurring any virtual-memory page
faults or I/O operations. A return value of false does not
necessarily imply that the buffer's content is not resident in physical
memory.

The returned value is a hint, rather than a guarantee, because the
underlying operating system may have paged out some of the buffer's data
by the time that an invocation of this method returns.

<br />

##### Returns

- true if it is likely that this buffer's content is resident in physical memory

#### public final [MappedByteBuffer](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/MappedByteBuffer.html)
**load**
()

Loads this buffer's content into physical memory.

This method makes a best effort to ensure that, when it returns,
this buffer's content is resident in physical memory. Invoking this
method may cause some number of page faults and I/O operations to
occur.

<br />

##### Returns

- This buffer