public class Bindings<T>
extends java.lang.Object
| Constructor and Description |
|---|
Bindings(java.util.Map<java.lang.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.
|
java.util.Set<java.util.Map.Entry<java.lang.String,T>> |
entrySet()
The set of variable/value entries of these bindings
|
boolean |
equals(java.lang.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(java.lang.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
|
java.lang.String |
toString() |
public Bindings(java.util.Map<java.lang.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(java.lang.String variable)
variable - the variable, as a keypublic java.util.Set<java.util.Map.Entry<java.lang.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 drawnpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.ObjectCopyright © 2016. All Rights Reserved.