T - FIXMEpublic static class MatrixMap.SemanticList<T> extends AbstractList<T> implements RandomAccess
Sert a optimiser la recherche de la position d'une donnee dans la liste. Permet aussi de verifier qu'on ajoute pas de doublon dans la liste
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<T> |
datas |
protected Map<T,Integer> |
index |
modCount| Constructor and Description |
|---|
SemanticList() |
SemanticList(Collection<T> c) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
T |
get(int index) |
protected Map<T,Integer> |
getIndex() |
int |
indexOf(Object o) |
T |
remove(int index) |
T |
set(int index,
T element) |
int |
size() |
add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic SemanticList()
public SemanticList(Collection<T> c)
public T get(int index)
public void add(int index,
T element)
public T remove(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public int indexOf(Object o)
Copyright © 2004–2020 CodeLutin. All rights reserved.