E
- The type of List-members.soappublic final class List<E> extends NestedObject implements List<E>
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element)
Adds an element to the list.
|
void |
add(int index,
E element)
Inserts a new element into the list.
|
boolean |
addAll(Collection<? extends E> elements)
Adds all elements of a collection to this list.
|
boolean |
addAll(int index,
Collection<? extends E> elements)
Inserts all elemnts of some collection into this list.
|
void |
clear() |
List<E> |
clone()
Returns a shallow copy of this List.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
static List<Object> |
create()
Creates a list for arbitrary IvyObjects.
|
static <C> List<C> |
create(Class<C> javaClass)
Creates a List with given Java-Member type.
|
static <C> List<C> |
create(Class<C> javaClass,
int initCap)
Creates a List with given Java-Member type.
|
static List<Object> |
create(int initCap)
Creates a list for arbitrary IvyObjects.
|
List<E> |
deepClone()
Returns a deep copy of this List.
|
void |
elementChanged(Object object)
Notifies all listeners that the given object has changed.
|
void |
elementChangedAt(int index)
Notifies all listeners that the element at given index has changed.
|
void |
ensureCapacity(int cap)
Sets the capacity of the list.
|
E |
get(int index) |
(package private) int |
hashCode(int level)
Computes a hashcode considering elements up to a certain nesting depth.
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element)
Sets the value of a list element.
|
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
E[] |
toArray() |
<T> T[] |
toArray(T[] a) |
void |
trimToSize()
Trims the wrapped array.
|
equals, hashCode, toString
public static List<Object> create()
public static <C> List<C> create(Class<C> javaClass)
C
- javaClass
- public static List<Object> create(int initCap)
initCap
- public static <C> List<C> create(Class<C> javaClass, int initCap)
C
- javaClass
- initCap
- public boolean add(E element)
element
- The new element.public void add(int index, E element)
index
- Where to insert the new element.element
- The new Element.public boolean addAll(Collection<? extends E> elements)
elements
- A collection with new elements; may be null.public boolean addAll(int index, Collection<? extends E> elements)
index
- Where to insert the new elements.elements
- A collection with new elements.public E set(int index, E element)
index
- The index of the element to set.element
- The new value.public void elementChangedAt(int index)
index
- public void elementChanged(Object object)
object
- public boolean contains(Object o)
List.contains(java.lang.Object)
public boolean containsAll(Collection<?> c)
List.containsAll(java.util.Collection)
public E get(int index)
List.get(int)
public int indexOf(Object o)
List.indexOf(java.lang.Object)
public boolean isEmpty()
List.isEmpty()
public Iterator<E> iterator()
List.iterator()
public int lastIndexOf(Object o)
List.lastIndexOf(java.lang.Object)
public ListIterator<E> listIterator()
List.listIterator()
public ListIterator<E> listIterator(int index)
List.listIterator(int)
public boolean remove(Object o)
List.remove(java.lang.Object)
public E remove(int index)
List.remove(int)
public boolean removeAll(Collection<?> c)
List.removeAll(java.util.Collection)
public boolean retainAll(Collection<?> c)
List.retainAll(java.util.Collection)
public List<E> subList(int fromIndex, int toIndex)
List.subList(int, int)
public E[] toArray()
List.toArray()
public <T> T[] toArray(T[] a)
T
- The type of the argument arraya
- java.util.List#toArray(T[])
public void clear()
List.clear()
public int size()
List.size()
public void ensureCapacity(int cap)
cap
- public List<E> clone()
clone
in interface IIvyDataObject
clone
in class NestedObject
Object.clone()
public List<E> deepClone()
deepClone
in interface IIvyDataObject
deepClone
in class NestedObject
int hashCode(int level)
hashCode
in class NestedObject
level
- The nesting depth.public void trimToSize()
Copyright © 2024
AXON IVY AG
All Rights Reserved Documentation was generated
on April 28, 2024