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 voidadd(int value)Adds a new integer to this set.voidaddAll(IntSet values)Adds all the integers from another set to this set.booleancontains(int value)Checks if the given integer value is in this set.IntSetcopy()Creates a copy of this set.booleanisEmpty()Cehcks if the set is empty.IntIteratoriterator()An iterator over the values of this set.intmax()Returns the maximum integer in this set.intmin()Returns the minimum integer in this set.voidremove(int value)Remove the given integer value from this set.intsize()Returns the number of elements in the set.IntSetunion(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:IntSetAdds a new integer to this set.
-
addAll
public void addAll(IntSet values)
Description copied from interface:IntSetAdds all the integers from another set to this set.
-
contains
public boolean contains(int value)
Description copied from interface:IntSetChecks if the given integer value is in this set.
-
isEmpty
public boolean isEmpty()
Description copied from interface:IntSetCehcks if the set is empty.
-
iterator
public IntIterator iterator()
Description copied from interface:IntSetAn 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:IntSetReturns the maximum integer in this set.
-
min
public int min()
Description copied from interface:IntSetReturns the minimum integer in this set.
-
remove
public void remove(int value)
Description copied from interface:IntSetRemove the given integer value from this set.
-
size
public int size()
Description copied from interface:IntSetReturns the number of elements in the set.
-
-