@Deprecated
public class SortedIntSet
extends java.util.AbstractCollection<java.lang.Integer>
implements java.util.SortedSet<java.lang.Integer>
| Constructor and Description |
|---|
SortedIntSet()
Deprecated.
Default constructor
|
SortedIntSet(int[] input)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int num)
Deprecated.
Add the item.
|
boolean |
add(java.lang.Integer arg0)
Deprecated.
|
void |
clear()
Deprecated.
Clear this set
|
java.util.Comparator<? super java.lang.Integer> |
comparator()
Deprecated.
|
boolean |
contains(int num)
Deprecated.
Check if
num exist in this set. |
boolean |
contains(java.lang.Object arg0)
Deprecated.
|
java.lang.Integer |
first()
Deprecated.
|
int |
getFirst()
Deprecated.
Get the smallest item on this set
|
int |
getLast()
Deprecated.
Get the largest item on this set
|
java.util.SortedSet<java.lang.Integer> |
headSet(java.lang.Integer arg0)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
Check if this set is empty.
|
java.util.Iterator<java.lang.Integer> |
iterator()
Deprecated.
|
java.lang.Integer |
last()
Deprecated.
|
boolean |
push(int num)
Deprecated.
Add the item, if it (or an item of the same number) is not already
present.
|
boolean |
remove(int item)
Deprecated.
Remove an item
|
boolean |
remove(java.lang.Object arg0)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> arg0)
Deprecated.
|
int |
removeFirst()
Deprecated.
Remove and return the smallest item
|
boolean |
retainAll(java.util.Collection<?> arg0)
Deprecated.
|
int |
size()
Deprecated.
|
java.util.SortedSet<java.lang.Integer> |
subSet(java.lang.Integer arg0,
java.lang.Integer arg1)
Deprecated.
|
java.util.SortedSet<java.lang.Integer> |
tailSet(java.lang.Integer arg0)
Deprecated.
|
int[] |
toArrayRaw()
Deprecated.
Get a sorted array of all items
|
int[] |
toIntArray()
Deprecated.
Get a sorted array of all items
|
addAll, containsAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SortedIntSet()
public SortedIntSet(int[] input)
public int size()
size in interface java.util.Collection<java.lang.Integer>size in interface java.util.Set<java.lang.Integer>size in class java.util.AbstractCollection<java.lang.Integer>public int getFirst()
public int getLast()
public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Integer>isEmpty in interface java.util.Set<java.lang.Integer>isEmpty in class java.util.AbstractCollection<java.lang.Integer>num - true, if the set is empty.public boolean contains(int num)
num exist in this set.num - true, if num exist.public boolean remove(int item)
item - the item to be removedpublic boolean push(int num)
true, if we added the item.public void add(int num)
{@link - IllegalArgumentException}
if the item already existpublic int removeFirst()
public void clear()
clear in interface java.util.Collection<java.lang.Integer>clear in interface java.util.Set<java.lang.Integer>clear in class java.util.AbstractCollection<java.lang.Integer>public int[] toIntArray()
public int[] toArrayRaw()
public java.util.Comparator<? super java.lang.Integer> comparator()
comparator in interface java.util.SortedSet<java.lang.Integer>public java.lang.Integer first()
first in interface java.util.SortedSet<java.lang.Integer>public java.util.SortedSet<java.lang.Integer> headSet(java.lang.Integer arg0)
headSet in interface java.util.SortedSet<java.lang.Integer>public java.lang.Integer last()
last in interface java.util.SortedSet<java.lang.Integer>public java.util.SortedSet<java.lang.Integer> subSet(java.lang.Integer arg0,
java.lang.Integer arg1)
subSet in interface java.util.SortedSet<java.lang.Integer>public java.util.SortedSet<java.lang.Integer> tailSet(java.lang.Integer arg0)
tailSet in interface java.util.SortedSet<java.lang.Integer>public boolean add(java.lang.Integer arg0)
add in interface java.util.Collection<java.lang.Integer>add in interface java.util.Set<java.lang.Integer>add in class java.util.AbstractCollection<java.lang.Integer>public boolean contains(java.lang.Object arg0)
contains in interface java.util.Collection<java.lang.Integer>contains in interface java.util.Set<java.lang.Integer>contains in class java.util.AbstractCollection<java.lang.Integer>public java.util.Iterator<java.lang.Integer> iterator()
iterator in interface java.lang.Iterable<java.lang.Integer>iterator in interface java.util.Collection<java.lang.Integer>iterator in interface java.util.Set<java.lang.Integer>iterator in class java.util.AbstractCollection<java.lang.Integer>public boolean remove(java.lang.Object arg0)
remove in interface java.util.Collection<java.lang.Integer>remove in interface java.util.Set<java.lang.Integer>remove in class java.util.AbstractCollection<java.lang.Integer>public boolean removeAll(java.util.Collection<?> arg0)
removeAll in interface java.util.Collection<java.lang.Integer>removeAll in interface java.util.Set<java.lang.Integer>removeAll in class java.util.AbstractCollection<java.lang.Integer>public boolean retainAll(java.util.Collection<?> arg0)
retainAll in interface java.util.Collection<java.lang.Integer>retainAll in interface java.util.Set<java.lang.Integer>retainAll in class java.util.AbstractCollection<java.lang.Integer>