@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","Operation"}) @Immutable public final class ImmutableOperation extends Operation
Operation.
Use the builder to create immutable instances:
ImmutableOperation.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableOperation.Builder
Builds instances of type
ImmutableOperation. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableOperation.Builder |
builder()
Creates a builder for
ImmutableOperation. |
static ImmutableOperation |
copyOf(Operation instance)
Creates an immutable copy of a
Operation value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableOperation that have equal attribute values. |
Optional<Long> |
flags() |
int |
hashCode()
Computes a hash code from attributes:
verb, key, value, flags, index, session. |
Optional<BigInteger> |
index() |
Optional<String> |
key() |
Optional<String> |
session() |
String |
toString()
Prints the immutable value
Operation with attribute values. |
Optional<String> |
value() |
String |
verb() |
ImmutableOperation |
withFlags(long value)
Copy the current immutable object by setting a present value for the optional
flags attribute. |
ImmutableOperation |
withFlags(Optional<Long> optional)
Copy the current immutable object by setting an optional value for the
flags attribute. |
ImmutableOperation |
withIndex(BigInteger value)
Copy the current immutable object by setting a present value for the optional
index attribute. |
ImmutableOperation |
withIndex(Optional<BigInteger> optional)
Copy the current immutable object by setting an optional value for the
index attribute. |
ImmutableOperation |
withKey(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
key attribute. |
ImmutableOperation |
withKey(String value)
Copy the current immutable object by setting a present value for the optional
key attribute. |
ImmutableOperation |
withSession(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
session attribute. |
ImmutableOperation |
withSession(String value)
Copy the current immutable object by setting a present value for the optional
session attribute. |
ImmutableOperation |
withValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
value attribute. |
ImmutableOperation |
withValue(String value)
Copy the current immutable object by setting a present value for the optional
value attribute. |
ImmutableOperation |
withVerb(String value)
Copy the current immutable object by setting a value for the
verb attribute. |
public String verb()
public Optional<BigInteger> index()
public final ImmutableOperation withVerb(String value)
verb attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for verbthis objectpublic final ImmutableOperation withKey(String value)
key attribute.value - The value for keythis objectpublic final ImmutableOperation withKey(Optional<String> optional)
key attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for keythis objectpublic final ImmutableOperation withValue(String value)
value attribute.value - The value for valuethis objectpublic final ImmutableOperation withValue(Optional<String> optional)
value attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for valuethis objectpublic final ImmutableOperation withFlags(long value)
flags attribute.value - The value for flagsthis objectpublic final ImmutableOperation withFlags(Optional<Long> optional)
flags attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for flagsthis objectpublic final ImmutableOperation withIndex(BigInteger value)
index attribute.value - The value for indexthis objectpublic final ImmutableOperation withIndex(Optional<BigInteger> optional)
index 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 indexthis objectpublic final ImmutableOperation withSession(String value)
session attribute.value - The value for sessionthis objectpublic final ImmutableOperation withSession(Optional<String> optional)
session attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for sessionthis objectpublic boolean equals(@Nullable Object another)
ImmutableOperation that have equal attribute values.public int hashCode()
verb, key, value, flags, index, session.public String toString()
Operation with attribute values.public static ImmutableOperation copyOf(Operation instance)
Operation 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 ImmutableOperation.Builder builder()
ImmutableOperation.Copyright © 2018. All rights reserved.