Package openllet.core.utils.intset
Class BitIntSet
- java.lang.Object
-
- openllet.core.utils.intset.BitIntSet
-
- All Implemented Interfaces:
IntSet
- Direct Known Subclasses:
ShiftedBitIntSet
public class BitIntSet extends java.lang.Object implements IntSet
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
- Author:
- Evren Sirin
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int value)
Adds a new integer to this set.void
addAll(IntSet values)
Adds all the integers from another set to this set.boolean
contains(int value)
Checks if the given integer value is in this set.IntSet
copy()
Creates a copy of this set.boolean
isEmpty()
Cehcks if the set is empty.IntIterator
iterator()
An iterator over the values of this set.int
max()
Returns the maximum integer in this set.int
min()
Returns the minimum integer in this set.void
remove(int value)
Remove the given integer value from this set.int
size()
Returns the number of elements in the set.IntSet
union(IntSet values)
Creates a new IntSet that is the union of this set and the given set.
-
-
-
Constructor Detail
-
BitIntSet
public BitIntSet()
-
BitIntSet
public BitIntSet(BitIntSet other)
-
-
Method Detail
-
add
public void add(int value)
Description copied from interface:IntSet
Adds a new integer to this set.
-
addAll
public void addAll(IntSet values)
Description copied from interface:IntSet
Adds all the integers from another set to this set.
-
contains
public boolean contains(int value)
Description copied from interface:IntSet
Checks if the given integer value is in this set.
-
isEmpty
public boolean isEmpty()
Description copied from interface:IntSet
Cehcks if the set is empty.
-
iterator
public IntIterator iterator()
Description copied from interface:IntSet
An iterator over the values of this set. There is no guarantee on the _order of the elements.
-
max
public int max()
Description copied from interface:IntSet
Returns the maximum integer in this set.
-
min
public int min()
Description copied from interface:IntSet
Returns the minimum integer in this set.
-
remove
public void remove(int value)
Description copied from interface:IntSet
Remove the given integer value from this set.
-
size
public int size()
Description copied from interface:IntSet
Returns the number of elements in the set.
-
-