@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","StateActionValueIF"}) @Immutable public final class StateActionValue extends Object implements StateActionValueIF
StateActionValueIF.
Use the builder to create immutable instances:
StateActionValue.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
StateActionValue.Builder
Builds instances of type
StateActionValue. |
| Modifier and Type | Method and Description |
|---|---|
static StateActionValue.Builder |
builder()
Creates a builder for
StateActionValue. |
static StateActionValue |
copyOf(StateActionValueIF instance)
Creates an immutable copy of a
StateActionValueIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
StateActionValue that have equal attribute values. |
String |
getBlockElementType() |
Optional<Object> |
getBlockElementValue() |
int |
hashCode()
Computes a hash code from attributes:
blockElementType, blockElementValue. |
String |
toString()
Prints the immutable value
StateActionValue with attribute values. |
StateActionValue |
withBlockElementType(String blockElementType)
Copy the current immutable object by setting a value for the
blockElementType attribute. |
StateActionValue |
withBlockElementValue(Object value)
Copy the current immutable object by setting a present value for the optional
blockElementValue attribute. |
StateActionValue |
withBlockElementValue(Optional<Object> optional)
Copy the current immutable object by setting an optional value for the
blockElementValue attribute. |
public String getBlockElementType()
getBlockElementType in interface StateActionValueIFblockElementType attributepublic Optional<Object> getBlockElementValue()
getBlockElementValue in interface StateActionValueIFblockElementValue attributepublic final StateActionValue withBlockElementType(String blockElementType)
blockElementType attribute.
An equals check used to prevent copying of the same value by returning this.blockElementType - A new value for blockElementTypethis objectpublic final StateActionValue withBlockElementValue(@Nullable Object value)
blockElementValue attribute.value - The value for blockElementValue, null is accepted as java.util.Optional.empty()this objectpublic final StateActionValue withBlockElementValue(Optional<Object> optional)
blockElementValue 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 blockElementValuethis objectpublic boolean equals(@Nullable Object another)
StateActionValue that have equal attribute values.public int hashCode()
blockElementType, blockElementValue.public String toString()
StateActionValue with attribute values.public static StateActionValue copyOf(StateActionValueIF instance)
StateActionValueIF 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 StateActionValue.Builder builder()
StateActionValue.Copyright © 2020. All rights reserved.