public class FastIntBuffer
extends java.lang.Object
int buffer.| Constructor and Description |
|---|
FastIntBuffer()
Creates a new
int buffer. |
FastIntBuffer(int size)
Creates a new
int buffer, with a buffer capacity of
the specified size. |
| Modifier and Type | Method and Description |
|---|---|
FastIntBuffer |
append(FastIntBuffer buff)
Appends another fast buffer to this one.
|
void |
append(int element)
Appends single
int to buffer. |
FastIntBuffer |
append(int[] array)
Appends
int array to buffer. |
FastIntBuffer |
append(int[] array,
int off,
int len)
Appends
int array to buffer. |
void |
clear()
Resets the buffer content.
|
int |
get(int index)
Returns
int element at given index. |
boolean |
isEmpty()
Tests if this buffer has no elements.
|
int |
size()
Returns buffer size.
|
int[] |
toArray()
Creates
int array from buffered content. |
int[] |
toArray(int start,
int len)
Creates
int subarray from buffered content. |
public FastIntBuffer()
int buffer. The buffer capacity is
initially 64 ints, though its size increases if necessary.public FastIntBuffer(int size)
int buffer, with a buffer capacity of
the specified size.size - the initial size.java.lang.IllegalArgumentException - if size is negative.public void append(int element)
int to buffer.public FastIntBuffer append(int[] array, int off, int len)
int array to buffer.public FastIntBuffer append(int[] array)
int array to buffer.public FastIntBuffer append(FastIntBuffer buff)
public int size()
public boolean isEmpty()
public void clear()
public int[] toArray()
int array from buffered content.public int[] toArray(int start,
int len)
int subarray from buffered content.public int get(int index)
int element at given index.Copyright © 2003-present Jodd Team