public static class BufferFactory.DoubleBufferFactory extends BufferFactory
BufferWrapper.DoubleBufferWrapperBufferFactory.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. | 
isAllocateDirectpublic 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 BufferFactorysize - the new buffer's size, int doubles.IllegalArgumentException - if size is negative.