public class Bindings<T> extends Object
| Constructor and Description |
|---|
Bindings(Map<String,T> map,
Query.QueryVariables vars)
Constructs a new set of bindings
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compatibleWith(Bindings<T> other,
Query.QueryVariables vars)
Finds whether these bindings are compatible with another set of bindings.
|
Set<Map.Entry<String,T>> |
entrySet()
The set of variable/value entries of these bindings
|
boolean |
equals(Object other) |
static <T> Bindings<T> |
from(Bindings<T> first,
Bindings<T> second)
Creates or returns a set of bindings which contains both sets of arguments.
|
T |
get(String variable)
Gets the value associated with a variable in these bindings
|
int |
getHash()
Gets a hashing key guaranteed to be the same for identical bindings
|
int |
hashCode() |
int |
size()
Gets the number of bindings
|
String |
toString() |
public Bindings(Map<String,T> map, Query.QueryVariables vars)
map - a map of keys to values. The keys must be drawn from the set of query variablesvars - the set of query variables referenced by these bindingspublic int getHash()
public static <T> Bindings<T> from(Bindings<T> first, Bindings<T> second)
T - the type of value boundfirst - a component binding setsecond - a component binding setpublic T get(String variable)
variable - the variable, as a keypublic Set<Map.Entry<String,T>> entrySet()
public int size()
public boolean compatibleWith(Bindings<T> other, Query.QueryVariables vars)
other - the other set of bindings to testvars - the query variables from which both sets of bindings are drawnCopyright © 2016. All Rights Reserved.