org.ontobox.fast.util.primitive.impl.standard
Class StdIntList
java.lang.Object
org.ontobox.fast.util.primitive.impl.standard.StdIntList
- All Implemented Interfaces:
- IntCollection, IntList
public class StdIntList
- extends java.lang.Object
- implements IntList
- Author:
- Anton Malykh
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StdIntList
public StdIntList(int size)
clear
public void clear()
- Specified by:
clear in interface IntCollection
insert
public final void insert(int index,
int value)
- Specified by:
insert in interface IntList
indexOf
public final int indexOf(int index,
int value)
- Specified by:
indexOf in interface IntList
- Parameters:
index - the offset at which to start the linear search (inclusive)
- Returns:
get
public final int get(int index)
- Specified by:
get in interface IntList
forEach
public final boolean forEach(IntProcessor processor)
- Specified by:
forEach in interface IntCollection
contains
public final boolean contains(int value)
- Specified by:
contains in interface IntCollection
add
public final void add(int value)
- Specified by:
add in interface IntCollection
addAll
public final void addAll(int[] values)
- Specified by:
addAll in interface IntCollection
size
public final int size()
- Specified by:
size in interface IntCollection
isEmpty
public final boolean isEmpty()
- Specified by:
isEmpty in interface IntCollection
removeValue
public void removeValue(int value)
removeIndex
public final void removeIndex(int index)
- Specified by:
removeIndex in interface IntList
toArray
public final int[] toArray()
- Specified by:
toArray in interface IntCollection