| org.openrdf.query.Binding
All known Subclasses: org.openrdf.query.impl.BindingImpl,
Binding | public interface Binding (Code) | | A named value binding.
|
Method Summary | |
public boolean | equals(Object o) Compares a binding object to another object.
Parameters: o - The object to compare this binding to. | public String | getName() Gets the name of the binding (e.g. | public Value | getValue() Gets the value of the binding. | public int | hashCode() The hash code of a binding is defined as the bit-wise XOR of the hash
codes of its name and value:
name.hashCode() ˆ value.hashCode()
. |
equals | public boolean equals(Object o)(Code) | | Compares a binding object to another object.
Parameters: o - The object to compare this binding to. true if the other object is an instance ofBinding and both their names and values are equal,false otherwise. |
getName | public String getName()(Code) | | Gets the name of the binding (e.g. the variable name).
The name of the binding. |
getValue | public Value getValue()(Code) | | Gets the value of the binding. The returned value is never equal to
null, such a "binding" is considered to be unbound.
The value of the binding, never null. |
hashCode | public int hashCode()(Code) | | The hash code of a binding is defined as the bit-wise XOR of the hash
codes of its name and value:
name.hashCode() ˆ value.hashCode()
.
A hash code for the binding. |
|
|