Package org.eclipse.epsilon.emc.plainxml
Class LoudList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<E>
-
- org.eclipse.epsilon.emc.plainxml.LoudList<E>
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess
public class LoudList<E> extends ArrayList<E>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayList<LoudListListener<E>>listenersprotected booleanunique-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description LoudList()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)booleanadd(E e)booleanaddAll(int index, Collection<? extends E> c)booleanaddAll(Collection<? extends E> c)voidaddListener(LoudListListener<E> listener)voidclear()booleanisUnique()static voidmain(String[] args)Eremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanremoveListener(LoudListListener<E> listener)booleanretainAll(Collection<?> c)Eset(int index, E element)voidsetUnique(boolean unique)-
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Field Detail
-
listeners
protected ArrayList<LoudListListener<E>> listeners
-
unique
protected boolean unique
-
-
Method Detail
-
main
public static void main(String[] args)
-
addListener
public void addListener(LoudListListener<E> listener)
-
removeListener
public boolean removeListener(LoudListListener<E> listener)
-
setUnique
public void setUnique(boolean unique)
-
isUnique
public boolean isUnique()
-
add
public boolean add(E e)
-
add
public void add(int index, E element)
-
addAll
public boolean addAll(Collection<? extends E> c)
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
clear
public void clear()
-
remove
public boolean remove(Object o)
-
remove
public E remove(int index)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
-