Package org.eclipse.rdf4j.query.impl
Class SimpleBinding
- java.lang.Object
-
- org.eclipse.rdf4j.query.impl.SimpleBinding
-
- All Implemented Interfaces:
Serializable,Binding
public class SimpleBinding extends Object implements Binding
An implementation of theBindinginterface.- Author:
- Jeen Broekstra
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleBinding(String name, Value value)Creates a binding object with the supplied name and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares a binding object to another object.StringgetName()Gets the name of the binding (e.g.ValuegetValue()Gets the value of the binding.inthashCode()The hash code of a binding is defined as the bit-wise XOR of the hash codes of its name and value:StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:BindingGets the name of the binding (e.g. the variable name).
-
getValue
public Value getValue()
Description copied from interface:BindingGets the value of the binding. The returned value is never equal to null, such a "binding" is considered to be unbound.
-
equals
public boolean equals(Object o)
Description copied from interface:BindingCompares a binding object to another object.
-
hashCode
public int hashCode()
Description copied from interface:BindingThe 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()
.
-
-