Package org.eclipse.rdf4j.query
Interface Binding
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
BindingImpl
,SimpleBinding
public interface Binding extends java.io.Serializable
A named value binding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Compares a binding object to another object.java.lang.String
getName()
Gets the name of the binding (e.g.Value
getValue()
Gets the value of the binding.int
hashCode()
The hash code of a binding is defined as the bit-wise XOR of the hash codes of its name and value:
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of the binding (e.g. the variable name).- Returns:
- The name of the binding.
-
getValue
Value getValue()
Gets the value of the binding. The returned value is never equal to null, such a "binding" is considered to be unbound.- Returns:
- The value of the binding, never null.
-
equals
boolean equals(java.lang.Object o)
Compares a binding object to another object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- The object to compare this binding to.- Returns:
- true if the other object is an instance of
Binding
and both their names and values are equal, false otherwise.
-
hashCode
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()
.
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- A hash code for the binding.
-
-