Java java.nio DoubleBuffer fields, constructors, methods, implement or subclass

Example usage for Java java.nio DoubleBuffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio DoubleBuffer.

The text is from its open source code.

Method

DoubleBufferallocate(int capacity)
Creates a double buffer based on a newly allocated double array.
double[]array()
Returns the double array which this buffer is based on, if there is one.
intarrayOffset()
Returns the offset of the double array which this buffer is based on, if there is one.
DoubleBufferasReadOnlyBuffer()
Returns a read-only buffer that shares its content with this buffer.
intcapacity()
Returns the capacity of this buffer.
Bufferclear()
Clears this buffer.
DoubleBuffercompact()
Compacts this double buffer.
intcompareTo(DoubleBuffer otherBuffer)
Compare the remaining doubles of this buffer to another double buffer's remaining doubles.
DoubleBufferduplicate()
Returns a duplicated buffer that shares its content with this buffer.
DoubleBufferget(double[] dest)
Reads doubles from the current position into the specified double array and increases the position by the number of doubles read.
doubleget(int index)
Returns a double at the specified index; the position is not changed.
doubleget()
Returns the double at the current position and increases the position by 1.
DoubleBufferget(double[] dest, int off, int len)
Reads doubles from the current position into the specified double array, starting from the specified offset, and increases the position by the number of doubles read.
booleanhasArray()
Indicates whether this buffer is based on a double array and is read/write.
inthashCode()
Returns a hash code value for the object.
booleanhasRemaining()
Indicates if there are elements remaining in this buffer, that is if position < limit .
booleanisDirect()
Indicates whether this buffer is direct.
intlimit()
Returns the limit of this buffer.
Buffermark()
Marks the current position, so that the position may return to this point later by calling reset().
ByteOrderorder()
Returns the byte order used by this buffer when converting doubles from/to bytes.
intposition()
Returns the position of this buffer.
Bufferposition(int newPosition)
Sets the position of this buffer.
DoubleBufferput(double d)
Writes the given double to the current position and increases the position by 1.
DoubleBufferput(double[] src)
Writes doubles from the given double array to the current position and increases the position by the number of doubles written.
DoubleBufferput(DoubleBuffer src)
Writes all the remaining doubles of the src double buffer to this buffer's current position, and increases both buffers' position by the number of doubles copied.
DoubleBufferput(int index, double d)
Write a double to the specified index of this buffer and the position is not changed.
DoubleBufferput(double[] src, int off, int len)
Writes doubles from the given double array, starting from the specified offset, to the current position and increases the position by the number of doubles written.
intremaining()
Returns the number of remaining elements in this buffer, that is limit - position .
Bufferreset()
Resets the position of this buffer to the mark.
Bufferrewind()
Rewinds this buffer.
DoubleBufferslice()
Returns a sliced buffer that shares its content with this buffer.
StringtoString()
Returns a string representing the state of this double buffer.
DoubleBufferwrap(double[] array, int start, int len)
Creates a new double buffer by wrapping the given double array.
DoubleBufferwrap(double[] array)
Creates a new double buffer by wrapping the given double array.