T - The type of the elementspublic class SortedListModel<T extends Comparable<T>> extends AbstractListModel implements List<T>
listenerList| Constructor and Description |
|---|
SortedListModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
T |
get(int index) |
Object |
getElementAt(int index) |
int |
getSize() |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<U> U[] |
toArray(U[] a) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic Object getElementAt(int index)
getElementAt in interface ListModelpublic void add(int index,
T element)
add in interface List<T extends Comparable<T>>public boolean add(T o)
add in interface Collection<T extends Comparable<T>>add in interface List<T extends Comparable<T>>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T extends Comparable<T>>addAll in interface List<T extends Comparable<T>>public boolean addAll(int index,
Collection<? extends T> c)
addAll in interface List<T extends Comparable<T>>public void clear()
clear in interface Collection<T extends Comparable<T>>clear in interface List<T extends Comparable<T>>public boolean contains(Object o)
contains in interface Collection<T extends Comparable<T>>contains in interface List<T extends Comparable<T>>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T extends Comparable<T>>containsAll in interface List<T extends Comparable<T>>public boolean equals(Object o)
equals in interface Collection<T extends Comparable<T>>equals in interface List<T extends Comparable<T>>equals in class Objectpublic int hashCode()
hashCode in interface Collection<T extends Comparable<T>>hashCode in interface List<T extends Comparable<T>>hashCode in class Objectpublic int indexOf(Object o)
indexOf in interface List<T extends Comparable<T>>public boolean isEmpty()
isEmpty in interface Collection<T extends Comparable<T>>isEmpty in interface List<T extends Comparable<T>>public Iterator<T> iterator()
iterator in interface Iterable<T extends Comparable<T>>iterator in interface Collection<T extends Comparable<T>>iterator in interface List<T extends Comparable<T>>public int lastIndexOf(Object o)
lastIndexOf in interface List<T extends Comparable<T>>public ListIterator<T> listIterator()
listIterator in interface List<T extends Comparable<T>>public ListIterator<T> listIterator(int index)
listIterator in interface List<T extends Comparable<T>>public boolean remove(Object o)
remove in interface Collection<T extends Comparable<T>>remove in interface List<T extends Comparable<T>>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T extends Comparable<T>>removeAll in interface List<T extends Comparable<T>>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T extends Comparable<T>>retainAll in interface List<T extends Comparable<T>>public int size()
size in interface Collection<T extends Comparable<T>>size in interface List<T extends Comparable<T>>public List<T> subList(int fromIndex, int toIndex)
subList in interface List<T extends Comparable<T>>public Object[] toArray()
toArray in interface Collection<T extends Comparable<T>>toArray in interface List<T extends Comparable<T>>public <U> U[] toArray(U[] a)
toArray in interface Collection<T extends Comparable<T>>toArray in interface List<T extends Comparable<T>>Copyright © 2026. All rights reserved.