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

java.lang.Object
  extended by 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

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

Constructor Detail

StdIntList

public StdIntList(int size)
Method Detail

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