org.eclipse.rdf4j.model

## Interface BNode

- All Superinterfaces:
    Resource, Serializable, Value
  All Known Implementing Classes:
    BNodeImpl, MemBNode, NativeBNode, SimpleBNode

      public interface BNode
      extends Resource

  An RDF-1.1 blank node (aka bnode, aka anonymous node). A blank node has an identifier to be able to compare it to other blank nodes internally. Please note that, conceptually, blank node equality can only be determined by examining the statements that refer to them.
  See Also:
    RDF-1.1 Concepts and Abstract Syntax

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)` Compares a blank node object to another object.
    `String` | `getID()` retrieves this blank node's identifier.
    `int` | `hashCode()` The hash code of a blank node is defined as the hash code of its identifier: `id.hashCode()`.

    - ### Methods inherited from interface org.eclipse.rdf4j.model.Value

      `stringValue`

- - ### Method Detail

    - #### getID

          String getID()

      retrieves this blank node's identifier.
      Returns:
        A blank node identifier.

    - #### equals

          boolean equals(Object o)

      Compares a blank node object to another object.
      Overrides:
        `equals` in class `Object`
      Parameters:
        `o` - The object to compare this blank node to.
      Returns:
        `true` if the other object is an instance of `BNode` and their IDs are equal, `false` otherwise.

    - #### hashCode

          int hashCode()

      The hash code of a blank node is defined as the hash code of its identifier: `id.hashCode()`.
      Overrides:
        `hashCode` in class `Object`
      Returns:
        A hash code for the blank node.

Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.