de.gulden.util.nio
Class FifoFloat
java.lang.Object
de.gulden.util.nio.FifoFloat
- Direct Known Subclasses:
- RingFloat
public class FifoFloat
- extends java.lang.Object
Fifo for float values.
This class is synchronized.
- Version:
- 0.3
- Author:
- Jens Gulden
Method Summary |
int |
available()
|
void |
ensureCapacity(int size)
|
float |
get()
|
void |
get(float[] arr)
|
void |
get(float[] arr,
int n)
|
protected java.nio.FloatBuffer |
getAppendable()
|
boolean |
isEmpty()
|
void |
put(float f)
|
void |
put(float[] f)
|
void |
put(float[] f,
int offset,
int length)
|
void |
put(java.nio.FloatBuffer buf)
Only the remaining buffer content will be used by the fifo-queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ALLOCATION_SIZE
public static int DEFAULT_ALLOCATION_SIZE
fifo
protected java.util.ArrayList fifo
avail
protected int avail
appendable
protected java.nio.FloatBuffer appendable
allocationSize
protected int allocationSize
FifoFloat
public FifoFloat()
put
public void put(java.nio.FloatBuffer buf)
- Only the remaining buffer content will be used by the fifo-queue.
put
public void put(float[] f)
put
public void put(float[] f,
int offset,
int length)
put
public void put(float f)
get
public void get(float[] arr,
int n)
get
public void get(float[] arr)
get
public float get()
available
public int available()
isEmpty
public boolean isEmpty()
ensureCapacity
public void ensureCapacity(int size)
getAppendable
protected java.nio.FloatBuffer getAppendable()