@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","StateBlockIF"}) @Immutable public final class StateBlock extends Object implements StateBlockIF
StateBlockIF.
Use the builder to create immutable instances:
StateBlock.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
StateBlock.Builder
Builds instances of type
StateBlock. |
| Modifier and Type | Method and Description |
|---|---|
static StateBlock.Builder |
builder()
Creates a builder for
StateBlock. |
static StateBlock |
copyOf(StateBlockIF instance)
Creates an immutable copy of a
StateBlockIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
StateBlock that have equal attribute values. |
Map<String,StateAction> |
getActions() |
int |
hashCode()
Computes a hash code from attributes:
actions. |
String |
toString()
Prints the immutable value
StateBlock with attribute values. |
StateBlock |
withActions(Map<String,? extends StateAction> actions)
Copy the current immutable object by replacing the
actions map with the specified map. |
public Map<String,StateAction> getActions()
getActions in interface StateBlockIFactions attributepublic final StateBlock withActions(Map<String,? extends StateAction> actions)
actions map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.actions - The entries to be added to the actions mapthis objectpublic boolean equals(@Nullable Object another)
StateBlock that have equal attribute values.public int hashCode()
actions.public String toString()
StateBlock with attribute values.public static StateBlock copyOf(StateBlockIF instance)
StateBlockIF 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 StateBlock.Builder builder()
StateBlock.Copyright © 2020. All rights reserved.