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>>
listeners
protected boolean
unique
-
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 void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, Collection<? extends E> c)
boolean
addAll(Collection<? extends E> c)
void
addListener(LoudListListener<E> listener)
void
clear()
boolean
isUnique()
static void
main(String[] args)
E
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
removeListener(LoudListListener<E> listener)
boolean
retainAll(Collection<?> c)
E
set(int index, E element)
void
setUnique(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)
-
-