Uses of Class
org.djutils.event.reference.Reference
Package
Description
Provides classes and interfaces for asynchronous communication.
Provides classes and interfaces for easy access to Java's reference classes.
-
Uses of Reference in org.djutils.event
Modifier and TypeMethodDescriptionEventListenerMap.entrySet()
Returns the Set of Entry types holding pairs of a key (EventType) and a value (List of references to EventListeners for that EventType).Returns the original List of references to EventListeners for the given EventType.default List<Reference<EventListener>>
EventProducer.getListenerReferences
(EventType eventType) Return a safe copy of the list of (strong or weak) references to the registered listeners for the provided event type, or an empty list when nothing is registered for this event type.LocalEventProducer.getListenerReferences
(EventType eventType) EventListenerMap.put
(EventType key, List<Reference<EventListener>> value) Add the List of references to EventListeners for the given EventType to the underlying Map.Remove the List of references to EventListeners for the given EventType.EventListenerMap.values()
Returns a safe copy of the collection of lists of references to EventListeners, i.e. all the listeners registered in the mapModifier and TypeMethodDescriptionboolean
EventListenerMap.containsValue
(Reference<EventListener> reference) Returns whether the EventListenerMap contains the reference to the eventListener as one of the subscribers.Modifier and TypeMethodDescriptionEventListenerMap.put
(EventType key, List<Reference<EventListener>> value) Add the List of references to EventListeners for the given EventType to the underlying Map. -
Uses of Reference in org.djutils.event.reference
Modifier and TypeClassDescriptionclass
StrongReference<T extends Serializable>
A StrongReference class represents a normal pointer relation to a reference.class
WeakReference<T extends Serializable>
A WeakReference.