@Generated(value={"Immutables.generator","InitListener.Simple"}) public final class ImmutableSimple extends InitListener.Simple
InitListener.Simple.
Use the builder to create immutable instances:
ImmutableSimple.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSimple.Builder
Builds instances of type
ImmutableSimple. |
InitListener.Simple, InitListener.StateListener<T>, InitListener.TypedListener| Modifier and Type | Method and Description |
|---|---|
static ImmutableSimple.Builder |
builder()
Creates a builder for
ImmutableSimple. |
static ImmutableSimple |
copyOf(InitListener.Simple instance)
Creates an immutable copy of a
InitListener.Simple value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSimple that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
onStateReached, onTearDown. |
protected Optional<BiConsumer<NamedType<?>,Object>> |
onStateReached() |
protected Optional<BiConsumer<NamedType<?>,Object>> |
onTearDown() |
String |
toString()
Prints the immutable value
Simple with attribute values. |
ImmutableSimple |
withOnStateReached(BiConsumer<NamedType<?>,Object> value)
Copy the current immutable object by setting a present value for the optional
onStateReached attribute. |
ImmutableSimple |
withOnStateReached(Optional<BiConsumer<NamedType<?>,Object>> optional)
Copy the current immutable object by setting an optional value for the
onStateReached attribute. |
ImmutableSimple |
withOnTearDown(BiConsumer<NamedType<?>,Object> value)
Copy the current immutable object by setting a present value for the optional
onTearDown attribute. |
ImmutableSimple |
withOnTearDown(Optional<BiConsumer<NamedType<?>,Object>> optional)
Copy the current immutable object by setting an optional value for the
onTearDown attribute. |
onStateReached, onStateTearDownclone, finalize, getClass, notify, notifyAll, wait, wait, waitof, typedBuilderprotected Optional<BiConsumer<NamedType<?>,Object>> onStateReached()
onStateReached in class InitListener.SimpleonStateReached attributeprotected Optional<BiConsumer<NamedType<?>,Object>> onTearDown()
onTearDown in class InitListener.SimpleonTearDown attributepublic final ImmutableSimple withOnStateReached(BiConsumer<NamedType<?>,Object> value)
onStateReached attribute.value - The value for onStateReachedthis objectpublic final ImmutableSimple withOnStateReached(Optional<BiConsumer<NamedType<?>,Object>> optional)
onStateReached attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for onStateReachedthis objectpublic final ImmutableSimple withOnTearDown(BiConsumer<NamedType<?>,Object> value)
onTearDown attribute.value - The value for onTearDownthis objectpublic final ImmutableSimple withOnTearDown(Optional<BiConsumer<NamedType<?>,Object>> optional)
onTearDown attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for onTearDownthis objectpublic boolean equals(Object another)
ImmutableSimple that have equal attribute values.public int hashCode()
onStateReached, onTearDown.public String toString()
Simple with attribute values.public static ImmutableSimple copyOf(InitListener.Simple instance)
InitListener.Simple 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 ImmutableSimple.Builder builder()
ImmutableSimple.Copyright © 2017. All rights reserved.