org.ontobox.fast.util.primitive.impl.pcj
Class PCJIntSet

java.lang.Object
  extended by org.ontobox.fast.util.primitive.impl.pcj.PCJIntSet
All Implemented Interfaces:
IntCollection, IntSet

public class PCJIntSet
extends java.lang.Object
implements IntSet

Author:
Anton Malykh

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

Constructor Detail

PCJIntSet

public PCJIntSet(boolean chained,
                 int size)
Method Detail

clear

public void clear()
Specified by:
clear in interface IntCollection

getAny

public final int getAny()
Specified by:
getAny in interface IntSet

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

retainAll

public final void retainAll(int[] values)
Specified by:
retainAll in interface IntSet

size

public final int size()
Specified by:
size in interface IntCollection

isEmpty

public final boolean isEmpty()
Specified by:
isEmpty in interface IntCollection

removeValue

public final void removeValue(int index)
Specified by:
removeValue in interface IntSet

toArray

public final int[] toArray()
Specified by:
toArray in interface IntCollection