E - The type of the elementspublic class ListModelList<E> extends Object implements ListModel, List<E>
| Constructor and Description |
|---|
ListModelList(List<E> originalList)
Creates a new list model list by wrapping the given list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> collection) |
boolean |
addAll(int index,
Collection<? extends E> collection) |
void |
addListDataListener(ListDataListener listDataListener) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
E |
get(int index) |
E |
getElementAt(int index) |
int |
getSize() |
int |
indexOf(Object object) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object object) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
void |
removeListDataListener(ListDataListener listDataListener) |
boolean |
retainAll(Collection<?> collection) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic void addListDataListener(ListDataListener listDataListener)
addListDataListener in interface ListModelpublic E getElementAt(int index)
getElementAt in interface ListModelpublic void removeListDataListener(ListDataListener listDataListener)
removeListDataListener in interface ListModelpublic boolean add(E element)
public boolean addAll(Collection<? extends E> collection)
public boolean addAll(int index,
Collection<? extends E> collection)
public void clear()
public boolean contains(Object object)
public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean isEmpty()
public int lastIndexOf(Object object)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>public boolean remove(Object object)
public boolean removeAll(Collection<?> collection)
public boolean retainAll(Collection<?> collection)
public int size()
public Object[] toArray()
Copyright © 2026. All rights reserved.