T - list item typepublic class LifecycleAwareList<T> extends Object implements List<T>, Copyable, Serializable
Mutability of the list will follow the semantics for the lifecycle element.
| Constructor and Description |
|---|
LifecycleAwareList(LifecycleElement lifecycleElement)
Create a new list instance.
|
LifecycleAwareList(LifecycleElement lifecycleElement,
List<T> delegate)
Create a new list instance, based on another list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear() |
Object |
clone()
Override
Object.clone() to assign the public modifier. |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
T |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<A> A[] |
toArray(A[] a) |
finalize, getClass, notify, notifyAll, toString, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic LifecycleAwareList(LifecycleElement lifecycleElement)
lifecycleElement - The lifecycle element to use for mutability checks.public LifecycleAwareList(LifecycleElement lifecycleElement, List<T> delegate)
lifecycleElement - The lifecycle element to use for mutability checks.delegate - The list to wrap.public int size()
public boolean isEmpty()
public <A> A[] toArray(A[] a)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index, Collection<? extends T> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public int hashCode()
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>public Object clone() throws CloneNotSupportedException
CopyableObject.clone() to assign the public modifier.clone in interface Copyableclone in class ObjectObject.clone()CloneNotSupportedException - If Cloneable is not implemented. This should not
be possible when using this interface.Object.clone()Copyright © 2005–2018 The Kuali Foundation. All rights reserved.