public class ShortArrayList extends java.lang.Object implements java.util.RandomAccess, java.lang.Cloneable, java.io.Serializable, ShortIterable
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_GROW_FACTOR |
static int |
DEFAULT_INITIAL_CAPACITY |
Constructor and Description |
---|
ShortArrayList() |
ShortArrayList(int capacity) |
ShortArrayList(short[] a) |
ShortArrayList(short[] a,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
short k) |
boolean |
add(short k) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index,
java.util.Collection c) |
boolean |
addAll(int index,
ShortArrayList c) |
boolean |
addAll(ShortArrayList c) |
void |
addElements(int index,
short[] a,
int offset,
int length) |
int |
capacity() |
void |
clear() |
ShortArrayList |
clone() |
int |
compareTo(ShortArrayList l) |
boolean |
contains(short k) |
short[] |
elements() |
void |
ensureCapacity(int capacity) |
static short[] |
ensureCapacity(short[] array,
int length,
int preserve) |
boolean |
equals(ShortArrayList l) |
void |
getElements(int from,
short[] a,
int offset,
int length) |
float |
getGrowFactor() |
short |
getShort(int index) |
static short[] |
grow(short[] array,
int length,
int preserve,
float growFactor) |
int |
indexOf(short k) |
boolean |
isEmpty() |
ShortIterator |
iterator() |
int |
lastIndexOf(short k) |
boolean |
rem(short k) |
boolean |
removeAll(java.util.Collection c) |
boolean |
removeAll(ShortArrayList c) |
short |
removeByIndex(int index) |
void |
removeElements(int from,
int to) |
short |
set(int index,
short k) |
void |
setGrowFactor(float growFactor) |
int |
size() |
void |
size(int size) |
short[] |
toArray(short[] a) |
void |
trim() |
void |
trim(int n) |
void |
trimToSize() |
static ShortArrayList |
wrap(short[] a) |
static ShortArrayList |
wrap(short[] a,
int length) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, forEach
public static final int DEFAULT_INITIAL_CAPACITY
public static final float DEFAULT_GROW_FACTOR
public ShortArrayList(int capacity)
public ShortArrayList()
public ShortArrayList(short[] a)
public ShortArrayList(short[] a, int offset, int length)
public short[] elements()
public static ShortArrayList wrap(short[] a, int length)
public static ShortArrayList wrap(short[] a)
public void ensureCapacity(int capacity)
public float getGrowFactor()
public void setGrowFactor(float growFactor)
public void add(int index, short k)
public boolean add(short k)
public short getShort(int index)
public int indexOf(short k)
public int lastIndexOf(short k)
public short removeByIndex(int index)
public boolean rem(short k)
public short set(int index, short k)
public void clear()
public int size()
public int capacity()
public void size(int size)
public boolean isEmpty()
public void trim()
public void trim(int n)
public void getElements(int from, short[] a, int offset, int length)
public void removeElements(int from, int to)
public void addElements(int index, short[] a, int offset, int length)
public short[] toArray(short[] a)
public boolean addAll(int index, ShortArrayList c)
public boolean addAll(int index, java.util.Collection c)
public boolean addAll(java.util.Collection c)
public boolean addAll(ShortArrayList c)
public boolean removeAll(ShortArrayList c)
public boolean removeAll(java.util.Collection c)
public ShortArrayList clone()
clone
in class java.lang.Object
public boolean equals(ShortArrayList l)
public int compareTo(ShortArrayList l)
public boolean contains(short k)
public ShortIterator iterator()
iterator
in interface ShortIterable
iterator
in interface java.lang.Iterable
public static short[] ensureCapacity(short[] array, int length, int preserve)
public static short[] grow(short[] array, int length, int preserve, float growFactor)
public void trimToSize()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.