| Constructor and Description |
|---|
PresortedSet() |
PresortedSet(Comparator comparator) |
PresortedSet(Comparator comparator,
Collection c) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object e) |
boolean |
addAll(Collection c) |
void |
clear() |
Comparator |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
equals(Object o) |
Object |
first() |
int |
hashCode() |
SortedSet |
headSet(Object toElement) |
boolean |
isEmpty() |
Iterator |
iterator() |
Object |
last() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
SortedSet |
subSet(Object fromElement,
Object toElement) |
SortedSet |
tailSet(Object fromElement) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitspliteratorparallelStream, removeIf, streampublic PresortedSet()
public PresortedSet(Comparator comparator)
public PresortedSet(Comparator comparator, Collection c)
public boolean add(Object e)
add in interface Collectionadd in interface Setpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface Setpublic void clear()
clear in interface Collectionclear in interface Setpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Setpublic boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic Iterator iterator()
public boolean remove(Object o)
remove in interface Collectionremove in interface Setpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Setpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Setpublic int size()
size in interface Collectionsize in interface Setpublic List subList(int fromIndex, int toIndex)
public Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface Setpublic Comparator comparator()
comparator in interface SortedSetCopyright © 2015. All rights reserved.