|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.impl.BindingImpl
public class BindingImpl
An implementation of the Binding interface.
| Constructor Summary | |
|---|---|
BindingImpl(String name,
Value value)
Creates a binding object with the supplied name and value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compares a binding object to another object. |
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: |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BindingImpl(String name,
Value value)
name - The binding's name.value - The binding's value.| Method Detail |
|---|
public String getName()
Binding
getName in interface Bindingpublic Value getValue()
Binding
getValue in interface Bindingpublic boolean equals(Object o)
Binding
equals in interface Bindingequals in class Objecto - The object to compare this binding to.
Binding and both their names and values are equal,
false otherwise.public int hashCode()
Bindingname.hashCode() ˆ value.hashCode().
hashCode in interface BindinghashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||