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