public class SortedListModel<T>
extends javax.swing.AbstractListModel<T>
Constructor and Description |
---|
SortedListModel(java.util.Collection<? extends T> items,
java.util.Comparator<? super T> comparator) |
SortedListModel(java.util.Comparator<? super T> comparator) |
Modifier and Type | Method and Description |
---|---|
int |
add(T item) |
int[] |
addAll(java.util.Collection<? extends T> items) |
int[] |
addAll(java.util.Iterator<? extends T> iterator) |
int[] |
addAll(T[] items) |
void |
clear() |
static <T> SortedListModel<T> |
create(java.util.Comparator<? super T> comparator) |
T |
get(int index) |
T |
getElementAt(int index) |
java.util.List<T> |
getItems() |
int |
getSize() |
int |
indexOf(T item) |
java.util.Iterator<T> |
iterator() |
void |
remove(int index) |
void |
remove(T item) |
void |
setAll(java.util.Collection<? extends T> items) |
void |
setAll(T[] items) |
public SortedListModel(java.util.Comparator<? super T> comparator)
public static <T> SortedListModel<T> create(java.util.Comparator<? super T> comparator)
public int add(T item)
public int[] addAll(T[] items)
public int[] addAll(java.util.Iterator<? extends T> iterator)
public int[] addAll(java.util.Collection<? extends T> items)
public void remove(int index)
public void remove(T item)
public int indexOf(T item)
public int getSize()
public T getElementAt(int index)
public void setAll(java.util.Collection<? extends T> items)
public void clear()
public java.util.List<T> getItems()
public T get(int index)
public void setAll(T[] items)
public java.util.Iterator<T> iterator()