public static class BufferFactory.DoubleBufferFactory extends BufferFactory
BufferWrapper.DoubleBufferWrapper
BufferFactory.ByteBufferFactory, BufferFactory.DoubleBufferFactory, BufferFactory.FloatBufferFactory, BufferFactory.IntBufferFactory, BufferFactory.ShortBufferFactory
Constructor and Description |
---|
DoubleBufferFactory()
Constructs a new DoubleBufferFactory with the default buffer allocation policy.
|
DoubleBufferFactory(boolean allocateDirect)
Constructs a new DoubleBufferFactory with the specified buffer allocation policy.
|
Modifier and Type | Method and Description |
---|---|
BufferWrapper |
newBuffer(int size)
Constructs a new DoubleBufferWrapper of the specified size, backed by a
DoubleBuffer . |
isAllocateDirect
public DoubleBufferFactory()
public DoubleBufferFactory(boolean allocateDirect)
allocateDirect
- true to allocate and return DoubleBufferWrappers backed by direct buffers, false to
allocate and return DoubleBufferWrappers backed by non-direct buffers.public BufferWrapper newBuffer(int size)
DoubleBuffer
.newBuffer
in class BufferFactory
size
- the new buffer's size, int doubles.java.lang.IllegalArgumentException
- if size is negative.