@Generated(value={"Immutables.generator","PutOptions"}) 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. |
com.google.common.base.Optional<String> |
getAcquire() |
com.google.common.base.Optional<Long> |
getCas() |
com.google.common.base.Optional<String> |
getDc() |
com.google.common.base.Optional<String> |
getRelease() |
int |
hashCode()
Computes a hash code from attributes:
cas, acquire, release, dc. |
String |
toString()
Prints the immutable value
PutOptions with attribute values. |
ImmutablePutOptions |
withAcquire(com.google.common.base.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(com.google.common.base.Optional<Long> optional)
Copy the current immutable object by setting an optional value for the
cas attribute. |
ImmutablePutOptions |
withDc(com.google.common.base.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(com.google.common.base.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. |
toQuerypublic com.google.common.base.Optional<Long> getCas()
getCas in class PutOptionscas attributepublic com.google.common.base.Optional<String> getAcquire()
getAcquire in class PutOptionsacquire attributepublic com.google.common.base.Optional<String> getRelease()
getRelease in class PutOptionsrelease attributepublic com.google.common.base.Optional<String> getDc()
getDc in class PutOptionsdc attributepublic final ImmutablePutOptions withCas(long value)
cas attribute.value - The value for casthis objectpublic final ImmutablePutOptions withCas(com.google.common.base.Optional<Long> optional)
cas attribute.
An equality check is used 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(com.google.common.base.Optional<String> optional)
acquire attribute.
An equality check is used 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(com.google.common.base.Optional<String> optional)
release attribute.
An equality check is used 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(com.google.common.base.Optional<String> optional)
dc attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for dcthis objectpublic boolean equals(Object another)
ImmutablePutOptions that have equal attribute values.public int hashCode()
cas, acquire, release, dc.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.Copyright © 2016. All rights reserved.