@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePutOptions extends PutOptions
PutOptions.
Use the builder to create immutable instances:
ImmutablePutOptions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePutOptions.Builder
Builds instances of type
ImmutablePutOptions. |
BLANK| Modifier and Type | Method and Description |
|---|---|
static ImmutablePutOptions.Builder |
builder()
Creates a builder for
ImmutablePutOptions. |
static ImmutablePutOptions |
copyOf(PutOptions instance)
Creates an immutable copy of a
PutOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePutOptions that have equal attribute values. |
Optional<String> |
getAcquire() |
Optional<Long> |
getCas() |
Optional<String> |
getDc() |
Optional<String> |
getRelease() |
Optional<String> |
getToken() |
int |
hashCode()
Computes a hash code from attributes:
cas, acquire, release, dc, token. |
String |
toString()
Prints the immutable value
PutOptions with attribute values. |
ImmutablePutOptions |
withAcquire(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
acquire attribute. |
ImmutablePutOptions |
withAcquire(String value)
Copy the current immutable object by setting a present value for the optional
acquire attribute. |
ImmutablePutOptions |
withCas(long value)
Copy the current immutable object by setting a present value for the optional
cas attribute. |
ImmutablePutOptions |
withCas(Optional<Long> optional)
Copy the current immutable object by setting an optional value for the
cas attribute. |
ImmutablePutOptions |
withDc(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
dc attribute. |
ImmutablePutOptions |
withDc(String value)
Copy the current immutable object by setting a present value for the optional
dc attribute. |
ImmutablePutOptions |
withRelease(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
release attribute. |
ImmutablePutOptions |
withRelease(String value)
Copy the current immutable object by setting a present value for the optional
release attribute. |
ImmutablePutOptions |
withToken(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
token attribute. |
ImmutablePutOptions |
withToken(String value)
Copy the current immutable object by setting a present value for the optional
token attribute. |
toQuerypublic Optional<Long> getCas()
getCas in class PutOptionscas attributepublic Optional<String> getAcquire()
getAcquire in class PutOptionsacquire attributepublic Optional<String> getRelease()
getRelease in class PutOptionsrelease attributepublic Optional<String> getDc()
getDc in class PutOptionsdc attributepublic Optional<String> getToken()
getToken in class PutOptionstoken attributepublic final ImmutablePutOptions withCas(long value)
cas attribute.value - The value for casthis objectpublic final ImmutablePutOptions withCas(Optional<Long> optional)
cas attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for casthis objectpublic final ImmutablePutOptions withAcquire(String value)
acquire attribute.value - The value for acquirethis objectpublic final ImmutablePutOptions withAcquire(Optional<String> optional)
acquire attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for acquirethis objectpublic final ImmutablePutOptions withRelease(String value)
release attribute.value - The value for releasethis objectpublic final ImmutablePutOptions withRelease(Optional<String> optional)
release attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for releasethis objectpublic final ImmutablePutOptions withDc(String value)
dc attribute.value - The value for dcthis objectpublic final ImmutablePutOptions withDc(Optional<String> optional)
dc attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for dcthis objectpublic final ImmutablePutOptions withToken(String value)
token attribute.value - The value for tokenthis objectpublic final ImmutablePutOptions withToken(Optional<String> optional)
token attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for tokenthis objectpublic boolean equals(@Nullable Object another)
ImmutablePutOptions that have equal attribute values.public int hashCode()
cas, acquire, release, dc, token.public String toString()
PutOptions with attribute values.public static ImmutablePutOptions copyOf(PutOptions instance)
PutOptions 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 ImmutablePutOptions.Builder builder()
ImmutablePutOptions.
ImmutablePutOptions.builder()
.cas(Long) // optional cas
.acquire(String) // optional acquire
.release(String) // optional release
.dc(String) // optional dc
.token(String) // optional token
.build();
Copyright © 2019. All rights reserved.