public class IntArray extends Object
| Constructor and Description |
|---|
IntArray() |
IntArray(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int value) |
void |
add(int index,
int value) |
void |
addAll(int[] array) |
void |
addAll(IntArray other) |
void |
clear() |
void |
ensureCapacity(int minCapacity) |
int |
get(int index) |
boolean |
isEmpty() |
int |
remove(int index) |
void |
remove(int from,
int to) |
int |
set(int index,
int value) |
int |
size() |
int[] |
toArray() |
void |
trimToSize() |
public int size()
public boolean isEmpty()
public void add(int value)
public void add(int index,
int value)
public void addAll(IntArray other)
public void addAll(int[] array)
public int remove(int index)
public void remove(int from,
int to)
public void clear()
public int get(int index)
public int set(int index,
int value)
public int[] toArray()
public void trimToSize()
public void ensureCapacity(int minCapacity)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.