public static final class BindingSets.Builder extends Object
Builder for BindingSet
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BindingSets.Builder |
add(Binding theBinding)
Add a
Binding to the set. |
BindingSets.Builder |
add(String theVar,
Value theValue)
Add a binding to the set
|
BindingSets.Builder |
addAll(Binding... theBindings)
Add all of the
bindings to this `BindingSet` |
BindingSet |
build()
Build a new
BindingSet. |
Optional<Value> |
value(String theVar)
Return the value bound to the specified variable in the builder
|
BindingSets.Builder |
vars(Set<String> theVars)
Sets the names of the variables associated with this `BindingSet`
|
BindingSets.Builder |
vars(String... theVars)
Set the names of the variables associated with this `BindingSet`
|
@Nonnull public BindingSets.Builder vars(@Nonnull String... theVars)
theVars - the variables@Nonnull public BindingSets.Builder vars(@Nonnull Set<String> theVars)
theVars - the variables@Nonnull public BindingSets.Builder add(@Nonnull String theVar, Value theValue)
theVar - the variable to be boundtheValue - the value the variable is bound to@Nonnull public BindingSets.Builder addAll(@Nonnull Binding... theBindings)
bindings to this `BindingSet`theBindings - the binding to add@Nonnull public BindingSets.Builder add(Binding theBinding)
Binding to the set.theBinding - the binding to add@Nonnull public Optional<Value> value(@Nonnull String theVar)
theVar - the variable name@Nonnull public BindingSet build()
BindingSet.Copyright © 2010-2016 Stardog Union. All Rights Reserved.