Interface IReadOnlyReorderableEventQueue<TEvent, TPoint, TPointDelta>
Represents a generic read-only event queue that allows to modify registered events.
public interface IReadOnlyReorderableEventQueue<TEvent, TPoint, TPointDelta> : IReadOnlyEventQueue<TEvent, TPoint, TPointDelta>, IReadOnlyCollection<EnqueuedEvent<TEvent, TPoint, TPointDelta>>, IEnumerable<EnqueuedEvent<TEvent, TPoint, TPointDelta>>, IEnumerable
Type Parameters
TEvent
Event type.
TPoint
Queue point type.
TPointDelta
Queue point delta type.
- Inherited Members
Properties
EventComparer
Event equality comparer.
IEqualityComparer<TEvent> EventComparer { get; }
Property Value
- IEqualityComparer<TEvent>
Methods
Contains(TEvent)
Checks whether or not this queue contains the specified event
.
[Pure]
bool Contains(TEvent @event)
Parameters
event
TEventEvent to check.
Returns
- bool
true when
event
exists, otherwise false.
GetEvent(TEvent)
Attempts to return event
information.
[Pure]
EnqueuedEvent<TEvent, TPoint, TPointDelta>? GetEvent(TEvent @event)
Parameters
event
TEventEvent to get information for.
Returns
- EnqueuedEvent<TEvent, TPoint, TPointDelta>?
EnqueuedEvent<TEvent, TPoint, TPointDelta> instance associated with the provided
event
or null when event does not exist.