|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mindswap.pellet.utils.intset.AbstractIntSet
org.mindswap.pellet.utils.intset.TreeIntSet
public class TreeIntSet
Title:
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor Summary | |
|---|---|
TreeIntSet()
|
|
TreeIntSet(TreeIntSet other)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.mindswap.pellet.utils.intset.AbstractIntSet |
|---|
toString, union |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mindswap.pellet.utils.intset.IntSet |
|---|
union |
| Constructor Detail |
|---|
public TreeIntSet()
public TreeIntSet(TreeIntSet other)
| Method Detail |
|---|
public void add(int value)
IntSet
add in interface IntSetvalue - integer value to be addedpublic void addAll(IntSet values)
IntSet
addAll in interface IntSetaddAll in class AbstractIntSetvalues - the set whose elements will be addedpublic boolean contains(int value)
IntSet
contains in interface IntSetvalue - the integer value being checked
true if the value is in this setpublic IntSet copy()
IntSet
copy in interface IntSetpublic boolean isEmpty()
IntSet
isEmpty in interface IntSettrue if there are no elements in the setpublic IntIterator iterator()
IntSet
iterator in interface IntSetpublic int max()
IntSet
max in interface IntSetmax in class AbstractIntSetpublic int min()
IntSet
min in interface IntSetmin in class AbstractIntSetpublic void remove(int value)
IntSet
remove in interface IntSetvalue - the integer value to be removedpublic int size()
IntSet
size in interface IntSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||