Uses of Class
org.djutils.event.ref.Reference
Package | Description |
---|---|
org.djutils.event |
Provides classes and interfaces for asynchronous communication.
|
org.djutils.event.ref |
Provides classes and interfaces for easy access to Java's reference classes.
|
org.djutils.event.remote |
EventProducer and EventListener extended for Remote access.
|
-
Uses of Reference in org.djutils.event
Methods in org.djutils.event that return types with arguments of type Reference Modifier and Type Method Description Set<Map.Entry<EventType,List<Reference<EventListenerInterface>>>>
EventListenerMap. entrySet()
Returns the Set of Entry types holding pairs of a key (EventType) and a value (List of references to EventListeners for that EventType).List<Reference<EventListenerInterface>>
EventListenerMap. get(EventType key)
Returns the original List of references to EventListeners for the given EventType.protected List<Reference<EventListenerInterface>>
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.List<Reference<EventListenerInterface>>
EventProducerImpl. 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.List<Reference<EventListenerInterface>>
EventListenerMap. put(EventType key, List<Reference<EventListenerInterface>> value)
Add the List of references to EventListeners for the given EventType to the underlying Map.List<Reference<EventListenerInterface>>
EventListenerMap. remove(EventType key)
Remove the List of references to EventListeners for the given EventType.Collection<List<Reference<EventListenerInterface>>>
EventListenerMap. values()
Returns a safe copy of the collection of lists of references to EventListeners, i.e.Methods in org.djutils.event with parameters of type Reference Modifier and Type Method Description boolean
EventListenerMap. containsValue(Reference<EventListenerInterface> 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 Reference Modifier and Type Method Description List<Reference<EventListenerInterface>>
EventListenerMap. put(EventType key, List<Reference<EventListenerInterface>> value)
Add the List of references to EventListeners for the given EventType to the underlying Map. -
Uses of Reference in org.djutils.event.ref
Subclasses of Reference in org.djutils.event.ref Modifier and Type Class Description class
StrongReference<T extends Serializable>
A StrongReference class represents a normal pointer relation to a reference.class
WeakReference<T extends Serializable>
A WeakReference. -
Uses of Reference in org.djutils.event.remote
Methods in org.djutils.event.remote that return types with arguments of type Reference Modifier and Type Method Description protected List<Reference<EventListenerInterface>>
RemoteEventProducer. 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.