|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mindswap.pellet.utils.intset.BitIntSet
org.mindswap.pellet.utils.intset.ShiftedBitIntSet
public class ShiftedBitIntSet
Title:
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
Constructor Summary | |
---|---|
ShiftedBitIntSet()
|
|
ShiftedBitIntSet(ShiftedBitIntSet other)
|
Method Summary | |
---|---|
void |
add(int value)
Adds a new integer 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. |
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. |
Methods inherited from class org.mindswap.pellet.utils.intset.BitIntSet |
---|
addAll, isEmpty, size, union |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShiftedBitIntSet()
public ShiftedBitIntSet(ShiftedBitIntSet other)
Method Detail |
---|
public void add(int value)
IntSet
add
in interface IntSet
add
in class BitIntSet
value
- integer value to be addedpublic boolean contains(int value)
IntSet
contains
in interface IntSet
contains
in class BitIntSet
value
- the integer value being checked
true
if the value is in this setpublic IntSet copy()
IntSet
copy
in interface IntSet
copy
in class BitIntSet
public IntIterator iterator()
IntSet
iterator
in interface IntSet
iterator
in class BitIntSet
public int max()
IntSet
max
in interface IntSet
max
in class BitIntSet
public int min()
IntSet
min
in interface IntSet
min
in class BitIntSet
public void remove(int value)
IntSet
remove
in interface IntSet
remove
in class BitIntSet
value
- the integer value to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |