|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.emory.mathcs.util.collections.shorts.AbstractShortCollection
edu.emory.mathcs.util.collections.shorts.AbstractShortSet
Convenience subclass for short sets.
| Constructor Summary | |
protected |
AbstractShortSet()
|
| Method Summary | |
boolean |
addAll(ShortCollection c)
Adds all of the elements in the specified collection to this set if they're not already present, and if they fall within this set's domain. |
boolean |
addInterval(short first,
short last)
Adds to this set all the numbers between first and last, inclusive, that are not already present in this set and beshort to this set's domain. |
ShortSet |
complementSet()
Returns a complement view of this set. |
boolean |
containsInterval(short first,
short last)
Returns true if this set contains all the numbers between first and last, inclusive; false otherwise. |
boolean |
equals(java.lang.Object obj)
Two sets are equal if they consists of the same elements. |
int |
hashCode()
|
boolean |
isEmpty()
Returns true if this set is empty; false otherwise. |
short |
max()
The largest number that can be stored in this set. |
short |
min()
The smallest number that can be stored in this set. |
boolean |
removeAll(ShortCollection c)
Removes from this set all of its elements that are contained in the specified collection. |
boolean |
removeInterval(short first,
short last)
Removes from this set all the numbers between first and last, inclusive. |
boolean |
retainAll(ShortCollection c)
Retains only the elements in this set that are contained in the specified collection. |
boolean |
retainInterval(short first,
short last)
Retains in this set only the numbers between first and last, inclusive. |
| Methods inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortCollection |
add, clear, contains, containsAll, iterator, remove, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.emory.mathcs.util.collections.shorts.ShortSet |
add, clear, contains, containsAll, iterator, remove, size, toArray, toArray |
| Constructor Detail |
protected AbstractShortSet()
| Method Detail |
public short min()
ShortSet
min in interface ShortSetpublic short max()
ShortSet
max in interface ShortSetpublic boolean equals(java.lang.Object obj)
ShortSet
equals in interface ShortSetpublic int hashCode()
hashCode in interface ShortSetpublic boolean isEmpty()
ShortSet
isEmpty in interface ShortSetisEmpty in class AbstractShortCollectionpublic boolean addAll(ShortCollection c)
ShortSet
addAll in interface ShortSetaddAll in class AbstractShortCollectionpublic boolean removeAll(ShortCollection c)
ShortSet
removeAll in interface ShortSetremoveAll in class AbstractShortCollectionpublic boolean retainAll(ShortCollection c)
ShortSet
retainAll in interface ShortSetretainAll in class AbstractShortCollection
public boolean containsInterval(short first,
short last)
ShortSet
containsInterval in interface ShortSet
public boolean addInterval(short first,
short last)
ShortSet
addInterval in interface ShortSetfirst - the beginning of the interval (inclusive)last - the end of the interval (inclusive)
ShortSet.add(short)
public boolean removeInterval(short first,
short last)
ShortSet
removeInterval in interface ShortSetfirst - the beginning of the interval (inclusive)last - the end of the interval (inclusive)
ShortSet.remove(short),
#removeAll()
public boolean retainInterval(short first,
short last)
ShortSet
retainInterval in interface ShortSetfirst - the beginning of the interval (inclusive)last - the end of the interval (inclusive)
#retainAll()public ShortSet complementSet()
ShortSet
complementSet in interface ShortSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||