org.ontobox.fast.util.primitive.impl.trove
Class TroveLongList

java.lang.Object
  extended by org.ontobox.fast.util.primitive.impl.trove.TroveLongList
All Implemented Interfaces:
LongCollection, LongList

public class TroveLongList
extends java.lang.Object
implements LongList

Author:
Anton Malykh

Constructor Summary
TroveLongList(int size)
           
 
Method Summary
 void add(long value)
           
 void addAll(long[] values)
           
 void clear()
           
 boolean contains(long value)
           
 boolean forEach(LongProcessor processor)
           
 long get(int index)
           
 int indexOf(int index, long value)
           
 void insert(int index, long value)
           
 boolean isEmpty()
           
 void removeIndex(int index)
           
 int size()
           
 long[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TroveLongList

public TroveLongList(int size)
Method Detail

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