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:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
,java.util.RandomAccess
public class LoudList<E> extends java.util.ArrayList<E>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<LoudListListener<E>>
listeners
protected boolean
unique
-
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, java.util.Collection<? extends E> c)
boolean
addAll(java.util.Collection<? extends E> c)
void
addListener(LoudListListener<E> listener)
void
clear()
boolean
isUnique()
static void
main(java.lang.String[] args)
E
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
removeListener(LoudListListener<E> listener)
boolean
retainAll(java.util.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
-
-
-
-
Field Detail
-
listeners
protected java.util.ArrayList<LoudListListener<E>> listeners
-
unique
protected boolean unique
-
-
Method Detail
-
main
public static void main(java.lang.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(java.util.Collection<? extends E> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> c)
-
clear
public void clear()
-
remove
public boolean remove(java.lang.Object o)
-
remove
public E remove(int index)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
-