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