@Generated(value={"Immutables.generator","QueryOptions"}) public final class ImmutableQueryOptions extends QueryOptions
QueryOptions.
Use the builder to create immutable instances:
ImmutableQueryOptions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableQueryOptions.Builder
Builds instances of type
ImmutableQueryOptions. |
BLANK| Modifier and Type | Method and Description |
|---|---|
static ImmutableQueryOptions.Builder |
builder()
Creates a builder for
ImmutableQueryOptions. |
static ImmutableQueryOptions |
copyOf(QueryOptions instance)
Creates an immutable copy of a
QueryOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableQueryOptions that have equal attribute values. |
ConsistencyMode |
getConsistencyMode() |
com.google.common.base.Optional<BigInteger> |
getIndex() |
com.google.common.base.Optional<String> |
getNear() |
com.google.common.base.Optional<String> |
getToken() |
com.google.common.base.Optional<String> |
getWait() |
int |
hashCode()
Computes a hash code from attributes:
wait, token, index, near, consistencyMode, isBlocking, hasToken. |
boolean |
hasToken() |
boolean |
isBlocking() |
String |
toString()
Prints the immutable value
QueryOptions with attribute values. |
ImmutableQueryOptions |
withConsistencyMode(ConsistencyMode value)
Copy the current immutable object by setting a value for the
consistencyMode attribute. |
ImmutableQueryOptions |
withIndex(BigInteger value)
Copy the current immutable object by setting a present value for the optional
index attribute. |
ImmutableQueryOptions |
withIndex(com.google.common.base.Optional<BigInteger> optional)
Copy the current immutable object by setting an optional value for the
index attribute. |
ImmutableQueryOptions |
withNear(com.google.common.base.Optional<String> optional)
Copy the current immutable object by setting an optional value for the
near attribute. |
ImmutableQueryOptions |
withNear(String value)
Copy the current immutable object by setting a present value for the optional
near attribute. |
ImmutableQueryOptions |
withToken(com.google.common.base.Optional<String> optional)
Copy the current immutable object by setting an optional value for the
token attribute. |
ImmutableQueryOptions |
withToken(String value)
Copy the current immutable object by setting a present value for the optional
token attribute. |
ImmutableQueryOptions |
withWait(com.google.common.base.Optional<String> optional)
Copy the current immutable object by setting an optional value for the
wait attribute. |
ImmutableQueryOptions |
withWait(String value)
Copy the current immutable object by setting a present value for the optional
wait attribute. |
blockMinutes, blockSeconds, toQuerypublic com.google.common.base.Optional<String> getWait()
getWait in class QueryOptionswait attributepublic com.google.common.base.Optional<String> getToken()
getToken in class QueryOptionstoken attributepublic com.google.common.base.Optional<BigInteger> getIndex()
getIndex in class QueryOptionsindex attributepublic com.google.common.base.Optional<String> getNear()
getNear in class QueryOptionsnear attributepublic ConsistencyMode getConsistencyMode()
getConsistencyMode in class QueryOptionsconsistencyMode attributepublic boolean isBlocking()
isBlocking in class QueryOptionsisBlocking attributepublic boolean hasToken()
hasToken in class QueryOptionshasToken attributepublic final ImmutableQueryOptions withWait(String value)
wait attribute.value - The value for waitthis objectpublic final ImmutableQueryOptions withWait(com.google.common.base.Optional<String> optional)
wait attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for waitthis objectpublic final ImmutableQueryOptions withToken(String value)
token attribute.value - The value for tokenthis objectpublic final ImmutableQueryOptions withToken(com.google.common.base.Optional<String> optional)
token attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for tokenthis objectpublic final ImmutableQueryOptions withIndex(BigInteger value)
index attribute.value - The value for indexthis objectpublic final ImmutableQueryOptions withIndex(com.google.common.base.Optional<BigInteger> optional)
index attribute.
A shallow reference equality check on the optional value is used to prevent copying of the same value by returning this.optional - A value for indexthis objectpublic final ImmutableQueryOptions withNear(String value)
near attribute.value - The value for nearthis objectpublic final ImmutableQueryOptions withNear(com.google.common.base.Optional<String> optional)
near attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for nearthis objectpublic final ImmutableQueryOptions withConsistencyMode(ConsistencyMode value)
consistencyMode attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for consistencyModethis objectpublic boolean equals(Object another)
ImmutableQueryOptions that have equal attribute values.public int hashCode()
wait, token, index, near, consistencyMode, isBlocking, hasToken.public String toString()
QueryOptions with attribute values.public static ImmutableQueryOptions copyOf(QueryOptions instance)
QueryOptions 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 ImmutableQueryOptions.Builder builder()
ImmutableQueryOptions.Copyright © 2016. All rights reserved.