public final class NuxeoPropertyList extends PropertyList implements List<Object>
PropertyList.
Les corrections sont les suivantes :
List<Object>
null à la méthode set(int, Object) ne risque pas de déclencher une NullPointerException. null n'est jamais inséré dans la
liste. Cette méthode surcharge normalement, du fait de sa signature, l'ensemble des méthodes set(int, T) de la classe parente.
equals(Object) et hashCode() ont été définies qui prennent en compte l'état de l'objet.
toString() produit une chaîne de caractères dans le format utilisé pour les échanges via l'API Nuxeo.
Un point sur lequel faire particulièrement attention avec cette classe, c'est qu'avant de stocker une valeur qui lui est passée, à moins que cette valeur soit de type
PropertyList, ou PropertyMap, une conversion vers String est effectuée. Cela signifie que du point de vue des instances de NuxeoPropertyList,
18 et "18" sont équivalents.
PropertyList,
Serialized Formlist| Constructor and Description |
|---|
NuxeoPropertyList()
Constructeur.
|
NuxeoPropertyList(int size)
Constructeur.
|
NuxeoPropertyList(List<Object> list)
Constructeur avec initialisation.
|
NuxeoPropertyList(PropertyList list)
Constructeur avec initialisation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object e) |
boolean |
addAll(Collection<? extends Object> c) |
boolean |
addAll(int index,
Collection<? extends Object> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
Object |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
Iterator<Object> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Object> |
listIterator() |
ListIterator<Object> |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
Object |
set(int i,
Object value)
Place un objet à un index donné.
|
List<Object> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
add, add, add, add, add, add, add, getBoolean, getBoolean, getDate, getDate, getDouble, getDouble, getList, getList, getList, getLong, getLong, getMap, getMap, getString, getString, isEmpty, list, set, set, set, set, set, set, set, sizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisEmpty, replaceAll, size, sort, spliteratorparallelStream, removeIf, streampublic NuxeoPropertyList()
public NuxeoPropertyList(PropertyList list)
list - la liste à utiliser pour l'initialisationpublic NuxeoPropertyList(List<Object> list)
list - la liste à utiliser pour l'initialisationpublic NuxeoPropertyList(int size)
size - la taille initiale de la listepublic Object set(int i, Object value)
null, aucune modification n'est effectuée.public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(Object e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Object>containsAll in interface List<Object>public boolean addAll(Collection<? extends Object> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public boolean addAll(int index,
Collection<? extends Object> c)
public int lastIndexOf(Object o)
lastIndexOf in interface List<Object>public ListIterator<Object> listIterator()
listIterator in interface List<Object>public ListIterator<Object> listIterator(int index)
listIterator in interface List<Object>public int hashCode()
public boolean equals(Object obj)
public String toString()
toString in class PropertyListCopyright © 2022. All rights reserved.