@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ActionsIF"}) @Immutable public final class Actions extends Object implements ActionsIF
ActionsIF.
Use the builder to create immutable instances:
Actions.builder().
Use the static factory method to create immutable instances:
Actions.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
Actions.Builder
Builds instances of type
Actions. |
| Modifier and Type | Method and Description |
|---|---|
static Actions.Builder |
builder()
Creates a builder for
Actions. |
static Actions |
copyOf(ActionsIF instance)
Creates an immutable copy of a
ActionsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Actions that have equal attribute values. |
Optional<String> |
getBlockId() |
List<BlockElement> |
getElements() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, elements, blockId. |
static Actions |
of(Iterable<? extends BlockElement> elements)
Construct a new immutable
Actions instance. |
static Actions |
of(List<BlockElement> elements)
Construct a new immutable
Actions instance. |
String |
toString()
Prints the immutable value
Actions with attribute values. |
Actions |
withBlockId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
blockId attribute. |
Actions |
withBlockId(String value)
Copy the current immutable object by setting a present value for the optional
blockId attribute. |
Actions |
withElements(BlockElement... elements)
Copy the current immutable object with elements that replace the content of
elements. |
Actions |
withElements(Iterable<? extends BlockElement> elements)
Copy the current immutable object with elements that replace the content of
elements. |
public String getType()
public List<BlockElement> getElements()
getElements in interface ActionsIFelements attributepublic Optional<String> getBlockId()
getBlockId in interface BlockblockId attributepublic final Actions withElements(BlockElement... elements)
elements.elements - The elements to setthis objectpublic final Actions withElements(Iterable<? extends BlockElement> elements)
elements.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of elements elements to setthis objectpublic final Actions withBlockId(@Nullable String value)
blockId attribute.value - The value for blockId, null is accepted as java.util.Optional.empty()this objectpublic final Actions withBlockId(Optional<String> optional)
blockId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for blockIdthis objectpublic boolean equals(@Nullable Object another)
Actions that have equal attribute values.public int hashCode()
type, elements, blockId.public String toString()
Actions with attribute values.public static Actions of(List<BlockElement> elements)
Actions instance.elements - The value for the elements attributepublic static Actions of(Iterable<? extends BlockElement> elements)
Actions instance.elements - The value for the elements attributepublic static Actions copyOf(ActionsIF instance)
ActionsIF 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 Actions.Builder builder()
Actions.Copyright © 2019. All rights reserved.