Uses of Class
org.djutils.event.reference.Reference
Packages that use 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
Methods in org.djutils.event that return types with arguments of type ReferenceModifier 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 mapMethods in org.djutils.event with parameters of type ReferenceModifier and TypeMethodDescriptionboolean
EventListenerMap.containsValue
(Reference<EventListener> reference) Returns whether the EventListenerMap contains the reference to the eventListener as one of the subscribers.Method parameters in org.djutils.event with type arguments of type ReferenceModifier 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
Subclasses of Reference in org.djutils.event.referenceModifier and TypeClassDescriptionclass
StrongReference<T extends Serializable>
A StrongReference class represents a normal pointer relation to a reference.class
WeakReference<T extends Serializable>
A WeakReference.