@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableTypedListener extends Listener.TypedListener
Listener.TypedListener.
Use the builder to create immutable instances:
ImmutableTypedListener.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTypedListener.Builder
Builds instances of type
ImmutableTypedListener. |
Listener.Simple, Listener.StateListener<T>, Listener.TypedListener| Modifier and Type | Method and Description |
|---|---|
static ImmutableTypedListener.Builder |
builder()
Creates a builder for
ImmutableTypedListener. |
static ImmutableTypedListener |
copyOf(Listener.TypedListener instance)
Creates an immutable copy of a
Listener.TypedListener value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTypedListener that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
stateReachedListener, stateTearDownListener. |
protected List<Listener.StateListener<?>> |
stateReachedListener() |
protected Map<StateID<?>,Consumer<?>> |
stateReachedListenerAsMap()
Returns a lazily initialized value of the
stateReachedListenerAsMap attribute. |
protected List<Listener.StateListener<?>> |
stateTearDownListener() |
protected Map<StateID<?>,Consumer<?>> |
stateTearDownListenerAsMap()
Returns a lazily initialized value of the
stateTearDownListenerAsMap attribute. |
String |
toString()
Prints the immutable value
TypedListener with attribute values. |
ImmutableTypedListener |
withStateReachedListener(Iterable<? extends Listener.StateListener<?>> elements)
Copy the current immutable object with elements that replace the content of
stateReachedListener. |
ImmutableTypedListener |
withStateReachedListener(Listener.StateListener<?>... elements)
Copy the current immutable object with elements that replace the content of
stateReachedListener. |
ImmutableTypedListener |
withStateTearDownListener(Iterable<? extends Listener.StateListener<?>> elements)
Copy the current immutable object with elements that replace the content of
stateTearDownListener. |
ImmutableTypedListener |
withStateTearDownListener(Listener.StateListener<?>... elements)
Copy the current immutable object with elements that replace the content of
stateTearDownListener. |
onStateReached, onStateTearDownclone, finalize, getClass, notify, notifyAll, wait, wait, waitof, typedBuilderprotected List<Listener.StateListener<?>> stateReachedListener()
stateReachedListener in class Listener.TypedListenerstateReachedListener attributeprotected List<Listener.StateListener<?>> stateTearDownListener()
stateTearDownListener in class Listener.TypedListenerstateTearDownListener attribute@SafeVarargs public final ImmutableTypedListener withStateReachedListener(Listener.StateListener<?>... elements)
stateReachedListener.elements - The elements to setthis objectpublic final ImmutableTypedListener withStateReachedListener(Iterable<? extends Listener.StateListener<?>> elements)
stateReachedListener.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of stateReachedListener elements to setthis object@SafeVarargs public final ImmutableTypedListener withStateTearDownListener(Listener.StateListener<?>... elements)
stateTearDownListener.elements - The elements to setthis objectpublic final ImmutableTypedListener withStateTearDownListener(Iterable<? extends Listener.StateListener<?>> elements)
stateTearDownListener.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of stateTearDownListener elements to setthis objectpublic boolean equals(Object another)
ImmutableTypedListener that have equal attribute values.public int hashCode()
stateReachedListener, stateTearDownListener.public String toString()
TypedListener with attribute values.protected Map<StateID<?>,Consumer<?>> stateReachedListenerAsMap()
Returns a lazily initialized value of the stateReachedListenerAsMap attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
In case of any exception or error thrown by the lazy value initializer,
the result will not be memoised (i.e. remembered) and on next call computation
will be attempted again.
stateReachedListenerAsMap in class Listener.TypedListenerstateReachedListenerAsMap attributeprotected Map<StateID<?>,Consumer<?>> stateTearDownListenerAsMap()
Returns a lazily initialized value of the stateTearDownListenerAsMap attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
In case of any exception or error thrown by the lazy value initializer,
the result will not be memoised (i.e. remembered) and on next call computation
will be attempted again.
stateTearDownListenerAsMap in class Listener.TypedListenerstateTearDownListenerAsMap attributepublic static ImmutableTypedListener copyOf(Listener.TypedListener instance)
Listener.TypedListener value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableTypedListener.Builder builder()
ImmutableTypedListener.
ImmutableTypedListener.builder()
.addStateReachedListener|addAllStateReachedListener(de.flapdoodle.reverse.Listener.StateListener<?>) // stateReachedListener elements
.addStateTearDownListener|addAllStateTearDownListener(de.flapdoodle.reverse.Listener.StateListener<?>) // stateTearDownListener elements
.build();
Copyright © 2025. All rights reserved.