T
- public class SortedList<T> extends Object implements SortedSet<T>, List<T>
Constructor and Description |
---|
SortedList(Collection<? extends Comparable<?>> x) |
SortedList(Collection<? extends T> x,
int start,
int end,
Comparator<T> cmp) |
SortedList(Collection<T> x,
Comparator<T> cmp) |
SortedList(Comparator<T> cmp,
T... x) |
SortedList(T... x) |
SortedList(T[] x,
int start,
int end,
Comparator<T> comparator2) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element)
Deprecated.
|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c)
Deprecated.
|
void |
clear() |
Comparator<? super T> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
static <T> SortedSet<T> |
empty() |
boolean |
equals(Object other)
Deprecated.
|
T |
first() |
static <T extends Comparable<?>> |
fromIterator(Iterator<T> it) |
static <T> SortedList<T> |
fromIterator(Iterator<T> it,
Comparator<T> cmp) |
T |
get(int index) |
Class<?> |
getType() |
boolean |
hasDuplicates() |
int |
hashCode()
Deprecated.
|
SortedList<T> |
headSet(T toElement) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
boolean |
isEqual(SortedList<T> list) |
boolean |
isSubSet() |
Iterator<T> |
iterator() |
T |
last() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index)
Deprecated.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element)
Deprecated.
|
void |
setType(Class<?> type) |
int |
size() |
SortedList<T> |
subList(int fromIndex,
int toIndex) |
SortedList<T> |
subSet(T fromElement,
T toElement) |
SortedSet<T> |
tailSet(T fromElement) |
Object[] |
toArray() |
<X> X[] |
toArray(X[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
replaceAll, sort, spliterator
public SortedList(Collection<? extends Comparable<?>> x)
public SortedList(Collection<T> x, Comparator<T> cmp)
public SortedList(T... x)
public SortedList(Comparator<T> cmp, T... x)
public SortedList(T[] x, int start, int end, Comparator<T> comparator2)
public SortedList(Collection<? extends T> x, int start, int end, Comparator<T> cmp)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <X> X[] toArray(X[] a)
public boolean add(T e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
containsAll
in interface Set<T>
public boolean addAll(Collection<? extends T> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public Comparator<? super T> comparator()
comparator
in interface SortedSet<T>
public boolean isSubSet()
public SortedList<T> subSet(T fromElement, T toElement)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<T>
@Deprecated public boolean addAll(int index, Collection<? extends T> c)
@Deprecated public T set(int index, T element)
@Deprecated public void add(int index, T element)
@Deprecated public T remove(int index)
public ListIterator<T> listIterator()
listIterator
in interface List<T>
public ListIterator<T> listIterator(int index)
listIterator
in interface List<T>
public SortedList<T> subList(int fromIndex, int toIndex)
@Deprecated public boolean equals(Object other)
@Deprecated public int hashCode()
public boolean isEqual(SortedList<T> list)
public Class<?> getType()
public void setType(Class<?> type)
public boolean hasDuplicates()
public static <T extends Comparable<?>> SortedList<T> fromIterator(Iterator<T> it)
public static <T> SortedList<T> fromIterator(Iterator<T> it, Comparator<T> cmp)
public static <T> SortedSet<T> empty()
Copyright © 2015 aQute SARL. All rights reserved.