public static interface QueryOptions.Builder
QueryOptions.| Modifier and Type | Method and Description |
|---|---|
@NonNull QueryOptions |
build()
Builds a
QueryOptions instance from the properties defined to
the builder. |
@NonNull QueryOptions.Builder |
context(@NonNull ContextSet context)
Sets the context.
|
@NonNull QueryOptions.Builder |
flag(@NonNull Flag flag,
boolean value)
Sets the value of the given flag.
|
@NonNull QueryOptions.Builder |
flags(@NonNull Set<Flag> flags)
Sets the flags.
|
@NonNull QueryOptions.Builder |
mode(@NonNull QueryMode mode)
Sets the
QueryMode. |
<O> @NonNull QueryOptions.Builder |
option(@NonNull OptionKey<O> key,
O value)
Sets the value of the given option.
|
@NonNull QueryOptions.Builder mode(@NonNull QueryMode mode)
QueryMode.mode - the mode to set@NonNull QueryOptions.Builder context(@NonNull ContextSet context)
Note that this is a set operation, not append. Existing contexts will be overridden.
Throws IllegalStateException if the mode is not
QueryMode.CONTEXTUAL.
context - the context to set@NonNull QueryOptions.Builder flag(@NonNull Flag flag, boolean value)
By default, all Flags are set to true.
flag - the flagvalue - the value to set@NonNull QueryOptions.Builder flags(@NonNull Set<Flag> flags)
Note that this is a set operation, not append. Existing flags will be overridden.
By default, all Flags are set to true.
flags - the flags<O> @NonNull QueryOptions.Builder option(@NonNull OptionKey<O> key, O value)
Passing null in place of a value will clear any existing
value set for the key.
O - the option typekey - the option keyvalue - the value, or null to clear@NonNull QueryOptions build()
QueryOptions instance from the properties defined to
the builder.QueryOptions instance.