@Generated(value={"Immutables.generator","InitListener.TypedListener"}) public final class ImmutableTypedListener extends InitListener.TypedListener
InitListener.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. |
InitListener.Simple, InitListener.StateListener<T>, InitListener.TypedListener| Modifier and Type | Method and Description |
|---|---|
static ImmutableTypedListener.Builder |
builder()
Creates a builder for
ImmutableTypedListener. |
static ImmutableTypedListener |
copyOf(InitListener.TypedListener instance)
Creates an immutable copy of a
InitListener.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<InitListener.StateListener<?>> |
stateReachedListener() |
Map<NamedType<?>,Consumer<?>> |
stateReachedListenerAsMap()
Returns a lazily initialized value of the
stateReachedListenerAsMap attribute. |
protected List<InitListener.StateListener<?>> |
stateTearDownListener() |
Map<NamedType<?>,Consumer<?>> |
stateTearDownListenerAsMap()
Returns a lazily initialized value of the
stateTearDownListenerAsMap attribute. |
String |
toString()
Prints the immutable value
TypedListener with attribute values. |
ImmutableTypedListener |
withStateReachedListener(InitListener.StateListener<?>... elements)
Copy the current immutable object with elements that replace the content of
stateReachedListener. |
ImmutableTypedListener |
withStateReachedListener(Iterable<? extends InitListener.StateListener<?>> elements)
Copy the current immutable object with elements that replace the content of
stateReachedListener. |
ImmutableTypedListener |
withStateTearDownListener(InitListener.StateListener<?>... elements)
Copy the current immutable object with elements that replace the content of
stateTearDownListener. |
ImmutableTypedListener |
withStateTearDownListener(Iterable<? extends InitListener.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<InitListener.StateListener<?>> stateReachedListener()
stateReachedListener in class InitListener.TypedListenerstateReachedListener attributeprotected List<InitListener.StateListener<?>> stateTearDownListener()
stateTearDownListener in class InitListener.TypedListenerstateTearDownListener attribute@SafeVarargs public final ImmutableTypedListener withStateReachedListener(InitListener.StateListener<?>... elements)
stateReachedListener.elements - The elements to setthis objectpublic final ImmutableTypedListener withStateReachedListener(Iterable<? extends InitListener.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(InitListener.StateListener<?>... elements)
stateTearDownListener.elements - The elements to setthis objectpublic final ImmutableTypedListener withStateTearDownListener(Iterable<? extends InitListener.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.public Map<NamedType<?>,Consumer<?>> stateReachedListenerAsMap()
Returns a lazily initialized value of the stateReachedListenerAsMap attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
stateReachedListenerAsMap in class InitListener.TypedListenerl.name attributepublic Map<NamedType<?>,Consumer<?>> stateTearDownListenerAsMap()
Returns a lazily initialized value of the stateTearDownListenerAsMap attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
stateTearDownListenerAsMap in class InitListener.TypedListenerl.name attributepublic static ImmutableTypedListener copyOf(InitListener.TypedListener instance)
InitListener.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.Copyright © 2017. All rights reserved.