public class ListObjectOrMap extends Object implements List
iter retourne un iterator qui permet
d'avance aussi bien dans la liste si celle-ci ne contient pas de Map ou dans
les valeurs des Map si la liste est constituee de Map.
Il est alors possible de recupere la valeur courante, modifier la valeur
courante ou recuperer une Key qui permettra de mettre a jour l'element
plus tard. Cette Class est surtout utilise pour la methode
WikittyClient#castTo| Modifier and Type | Class and Description |
|---|---|
static interface |
ListObjectOrMap.Key |
class |
ListObjectOrMap.ListObjectOrMapIterator |
| Constructor and Description |
|---|
ListObjectOrMap() |
ListObjectOrMap(List list) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object e) |
void |
add(String key,
Object value)
Ajoute une nouvelle map dans la liste avec les elements fournis en parametre
|
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
Object |
get(int index) |
List |
getList() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
ListObjectOrMap.ListObjectOrMapIterator |
iter() |
Iterator |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
protected List list
public ListObjectOrMap()
public ListObjectOrMap(List list)
public void add(String key, Object value)
key - value - public List getList()
public ListObjectOrMap.ListObjectOrMapIterator iter()
public int size()
size in interface Collectionsize in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listpublic Iterator iterator()
public Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface Listpublic boolean add(Object e)
add in interface Collectionadd in interface Listpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Listpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface Listpublic boolean addAll(int index,
Collection c)
public boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic int lastIndexOf(Object o)
lastIndexOf in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int index)
listIterator in interface ListCopyright © 2009-2013 CodeLutin. All Rights Reserved.