java.lang.Iterable<K>
, java.util.Collection<K>
, java.util.Set<K>
, java.util.SortedSet<K>
public class ReadOnlySortedSet<K>
extends java.lang.Object
implements java.util.SortedSet<K>
Constructor | Description |
---|---|
ReadOnlySortedSet(java.util.SortedSet<K> s) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(K e) |
|
boolean |
addAll(java.util.Collection<? extends K> c) |
|
void |
clear() |
|
java.util.Comparator<? super K> |
comparator() |
|
boolean |
contains(java.lang.Object arg0) |
|
boolean |
containsAll(java.util.Collection<?> arg0) |
|
K |
first() |
|
java.util.SortedSet<K> |
headSet(K arg0) |
|
boolean |
isEmpty() |
|
java.util.Iterator<K> |
iterator() |
|
K |
last() |
|
boolean |
remove(java.lang.Object o) |
|
boolean |
removeAll(java.util.Collection<?> c) |
|
boolean |
retainAll(java.util.Collection<?> c) |
|
int |
size() |
|
java.util.SortedSet<K> |
subSet(K arg0,
K arg1) |
|
java.util.SortedSet<K> |
tailSet(K arg0) |
|
java.lang.Object[] |
toArray() |
|
<T> T[] |
toArray(T[] arg0) |
public ReadOnlySortedSet(java.util.SortedSet<K> s)
public java.util.Comparator<? super K> comparator()
comparator
in interface java.util.SortedSet<K>
public java.util.SortedSet<K> headSet(K arg0)
headSet
in interface java.util.SortedSet<K>
public java.util.SortedSet<K> subSet(K arg0, K arg1)
subSet
in interface java.util.SortedSet<K>
public java.util.SortedSet<K> tailSet(K arg0)
tailSet
in interface java.util.SortedSet<K>
public boolean add(K e)
public boolean addAll(java.util.Collection<? extends K> c)
public void clear()
public boolean contains(java.lang.Object arg0)
public boolean containsAll(java.util.Collection<?> arg0)
public boolean isEmpty()
public java.util.Iterator<K> iterator()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public int size()
public java.lang.Object[] toArray()