nl.tudelft.simulation.event.util
Class EventProducingList
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.event.util.EventProducingList
- All Implemented Interfaces:
- Serializable, Iterable, Collection, List, EventProducerInterface
public class EventProducingList
- extends EventProducer
- implements List
The Event producing list provides a list to which one can subscribe interest
in entry changes. This class does not keep track of changes which take place
indirectly. One is for example not notified on
map.iterator.remove()
. A listener must subscribe to the
iterator individually.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/event
License of use: Lesser
General Public License (LGPL) , no warranty
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/event
License of use: Lesser
General Public License (LGPL) , no warranty
- Since:
- 1.2
- Version:
- $Revision: 1.1 $ $Date: 2007/01/06 13:24:36 $
- Author:
- Peter Jacobs
- See Also:
- Serialized Form
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OBJECT_ADDED_EVENT
public static final EventType OBJECT_ADDED_EVENT
- OBJECT_ADDED_EVENT is fired on new entries
OBJECT_REMOVED_EVENT
public static final EventType OBJECT_REMOVED_EVENT
- OBJECT_REMOVED_EVENT is fired on removel of entries
EventProducingList
public EventProducingList(List parent)
- constructs a new EventProducingList.
- Parameters:
parent
- the parent list.
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface List
- See Also:
List.size()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection
- Specified by:
isEmpty
in interface List
- See Also:
List.isEmpty()
clear
public void clear()
- Specified by:
clear
in interface Collection
- Specified by:
clear
in interface List
- See Also:
List.clear()
add
public void add(int index,
Object element)
- Specified by:
add
in interface List
- See Also:
List.add(int, java.lang.Object)
add
public boolean add(Object o)
- Specified by:
add
in interface Collection
- Specified by:
add
in interface List
- See Also:
Collection.add(java.lang.Object)
addAll
public boolean addAll(Collection c)
- Specified by:
addAll
in interface Collection
- Specified by:
addAll
in interface List
- See Also:
Collection.addAll(java.util.Collection)
addAll
public boolean addAll(int index,
Collection c)
- Specified by:
addAll
in interface List
- See Also:
List.addAll(int, java.util.Collection)
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection
- Specified by:
contains
in interface List
- See Also:
Collection.contains(java.lang.Object)
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll
in interface Collection
- Specified by:
containsAll
in interface List
- See Also:
Collection.containsAll(java.util.Collection)
get
public Object get(int index)
- Specified by:
get
in interface List
- See Also:
List.get(int)
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interface List
- See Also:
List.indexOf(java.lang.Object)
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface List
- See Also:
Collection.iterator()
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interface List
- See Also:
List.lastIndexOf(java.lang.Object)
listIterator
public ListIterator listIterator()
- Specified by:
listIterator
in interface List
- See Also:
List.listIterator()
listIterator
public ListIterator listIterator(int index)
- Specified by:
listIterator
in interface List
- See Also:
List.listIterator(int)
remove
public Object remove(int index)
- Specified by:
remove
in interface List
- See Also:
List.remove(int)
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection
- Specified by:
remove
in interface List
- See Also:
Collection.remove(java.lang.Object)
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAll
in interface Collection
- Specified by:
removeAll
in interface List
- See Also:
Collection.removeAll(java.util.Collection)
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAll
in interface Collection
- Specified by:
retainAll
in interface List
- See Also:
Collection.retainAll(java.util.Collection)
set
public Object set(int index,
Object element)
- Specified by:
set
in interface List
- See Also:
List.set(int, java.lang.Object)
subList
public List subList(int fromIndex,
int toIndex)
- Specified by:
subList
in interface List
- See Also:
List.subList(int, int)
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface List
- See Also:
Collection.toArray()
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface List
- See Also:
Collection.toArray(java.lang.Object[])
Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.