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