Package org.eclipse.rdf4j.query

## Interface Binding

- All Superinterfaces:
    `Serializable`
  All Known Implementing Classes:
    `BindingImpl`, `SimpleBinding`

      public interface Binding
      extends Serializable

  A named value binding.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `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:

- - ### Method Detail

    - #### getName

          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​(Object o)

      Compares a binding object to another object.
      Overrides:
        `equals` in class `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 class `Object`
      Returns:
        A hash code for the binding.