@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","BulkOperation"}) @Immutable public final class ImmutableBulkOperation extends BulkOperation
BulkOperation.
Use the builder to create immutable instances:
new BulkOperation.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableBulkOperation.Builder
Builds instances of type
ImmutableBulkOperation. |
| Modifier and Type | Method and Description |
|---|---|
List<BulkAction> |
actions()
The list of actions associated with this operation.
|
static ImmutableBulkOperation |
copyOf(BulkOperation instance)
Creates an immutable copy of a
BulkOperation value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBulkOperation that have equal attribute values. |
long |
estimatedSizeInBytes()
The estimated size of this operation.
|
int |
hashCode()
Computes a hash code from attributes:
actions, estimatedSizeInBytes, numberOfActions, payload. |
long |
numberOfActions()
The number of actions in this operation.
|
String |
payload()
The textual representation of this operation.
|
String |
toString()
Prints the immutable value
BulkOperation with attribute values. |
ImmutableBulkOperation |
withActions(BulkAction... elements)
Copy the current immutable object with elements that replace the content of
actions. |
ImmutableBulkOperation |
withActions(Iterable<? extends BulkAction> elements)
Copy the current immutable object with elements that replace the content of
actions. |
builderpublic List<BulkAction> actions()
actions in class BulkOperationList of actions to execute.public long estimatedSizeInBytes()
estimatedSizeInBytes in class BulkOperationpublic long numberOfActions()
numberOfActions in class BulkOperationpublic String payload()
payload in class BulkOperationpublic final ImmutableBulkOperation withActions(BulkAction... elements)
actions.elements - The elements to setthis objectpublic final ImmutableBulkOperation withActions(Iterable<? extends BulkAction> elements)
actions.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of actions elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableBulkOperation that have equal attribute values.public int hashCode()
actions, estimatedSizeInBytes, numberOfActions, payload.public String toString()
BulkOperation with attribute values.public static ImmutableBulkOperation copyOf(BulkOperation instance)
BulkOperation 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 copyCopyright © 2017. All rights reserved.