org.ontobox.fast.util.primitive.impl.standard
Class StdLongList

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

public class StdLongList
extends java.lang.Object
implements LongList

Author:
Anton Malykh

Constructor Summary
StdLongList(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)
           
 void removeValue(long value)
           
 int size()
           
 long[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdLongList

public StdLongList(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

removeValue

public void removeValue(long value)

removeIndex

public final void removeIndex(int index)
Specified by:
removeIndex in interface LongList

toArray

public final long[] toArray()
Specified by:
toArray in interface LongCollection