public class ShortArrayBuffer extends AbstractArrayBuffer
Usage Example:
ShortArrayBuffer buf = new ShortArrayBuffer(); Listresults = new ArrayList<>(); for (Object obj : listOfThingsToProcess) { for (Object x : obj.thingsThatShouldBecomeShorts()) { buf.add(someCalculation(x)); } results.add(buf.toArray()); buf.clear(); }
| Constructor and Description |
|---|
ShortArrayBuffer() |
ShortArrayBuffer(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(short s) |
void |
addAll(short[] values,
int valuesLength) |
short |
get(int i) |
short[] |
toArray() |
clear, ensureCapacity, isEmpty, length, setLength