|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectjavax.swing.AbstractListModel
org.moeaframework.analysis.diagnostics.SortedListModel<T>
T - the type of entry stored in this list modelpublic class SortedListModel<T extends Comparable<T>>
A sorted ListModel which stores only unique entries.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SortedListModel()
Constructs a new sorted list model. |
|
| Method Summary | |
|---|---|
void |
add(T item)
Adds the specified item to this list model. |
void |
addAll(Collection<? extends T> collection)
Adds all items contained in this collection to this list model. |
void |
clear()
Clears this list model. |
T |
getElementAt(int index)
Returns the value at the specified index. |
int |
getIndexOf(T item)
Returns the index of the specified item in this list model. |
int |
getSize()
Returns the length of the list. |
void |
remove(T item)
Removes the specified item from this list model. |
| Methods inherited from class javax.swing.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedListModel()
| Method Detail |
|---|
public void remove(T item)
item - the item to remove from this list modelpublic void clear()
public void add(T item)
item - the item to add to this list modelpublic void addAll(Collection<? extends T> collection)
add(Comparable).
collection - the collection of items to add to this list modelpublic int getIndexOf(T item)
item - the item whose index is returned
public int getSize()
javax.swing.ListModel
public T getElementAt(int index)
javax.swing.ListModel
index - the requested index
index
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||