DoubleBuffer (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Comparable<DoubleBuffer>
-
Method Summary
allocate(int capacity) Allocates a new double buffer.
final double[]array()Returns the double array that backs this buffer (optional operation).
final intReturns the offset within this buffer's backing array of the first element of the buffer (optional operation).
Creates a new, read-only double buffer that shares this buffer's content.
clear()compact()Compacts this buffer (optional operation).
intCompares this buffer to another.
Creates a new double buffer that shares this buffer's content.
booleanTells whether or not this buffer is equal to another object.
flip()abstract doubleget()get(double[] dst) Relative bulk get method.
get(double[] dst, int offset, int length) Relative bulk get method.
abstract doubleget(int index) get(int index, double[] dst) Absolute bulk get method.
get(int index, double[] dst, int offset, int length) Absolute bulk get method.
final booleanhasArray()Tells whether or not this buffer is backed by an accessible double array.
inthashCode()Returns the current hash code of this buffer.
abstract booleanisDirect()Tells whether or not this double buffer is direct.
limit(int newLimit) Sets this buffer's limit.
mark()Sets this buffer's mark at its position.
intFinds and returns the relative index of the first mismatch between this buffer and a given buffer.
order()Retrieves this buffer's byte order.
position(int newPosition) Sets this buffer's position.
put(double d) Relative put method (optional operation).
put(double[] src) Relative bulk put method (optional operation).
put(double[] src, int offset, int length) Relative bulk put method (optional operation).
put(int index, double d) Absolute put method (optional operation).
put(int index, double[] src) Absolute bulk put method (optional operation).
put(int index, double[] src, int offset, int length) Absolute bulk put method (optional operation).
put(int index, DoubleBuffer src, int offset, int length) Absolute bulk put method (optional operation).
Relative bulk put method (optional operation).
reset()Resets this buffer's position to the previously-marked position.
rewind()slice()Creates a new double buffer whose content is a shared subsequence of this buffer's content.
slice(int index, int length) Creates a new double buffer whose content is a shared subsequence of this buffer's content.
toString()Returns a string summarizing the state of this buffer.
wrap(double[] array) Wraps a double array into a buffer.
wrap(double[] array, int offset, int length) Wraps a double array into a buffer.
-
Method Details
-
allocate
-
wrap
-
wrap
-
slice
-
slice
-
duplicate
-
asReadOnlyBuffer
-
get
-
put
-
get
-
put
-
get
-
get
-
get
-
get
-
put
-
put
-
put
-
put
-
put
-
put
-
hasArray
-
array
-
arrayOffset
-
position
-
limit
-
mark
-
reset
-
clear
-
flip
-
rewind
-
compact
-
isDirect
-
toString
-
hashCode
-
equals
-
compareTo
-
mismatch
-
order
-