Class AbstractBNode

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  AbstractBNode.GenericBNode  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractBNode()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Compares this blank node to another object.
      int hashCode()
      Computes the hash code of this blank node.
      java.lang.String stringValue()
      Returns the String-value of a Value object.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractBNode

        public AbstractBNode()
    • Method Detail

      • stringValue

        public java.lang.String stringValue()
        Description copied from interface: Value
        Returns the String-value of a Value object. This returns either a Literal's label, a IRI's URI or a BNode's ID.
        Specified by:
        stringValue in interface Value
      • equals

        public boolean equals​(java.lang.Object o)
        Description copied from interface: BNode
        Compares this blank node to another object.
        Specified by:
        equals in interface BNode
        Overrides:
        equals in class java.lang.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

        public int hashCode()
        Description copied from interface: BNode
        Computes the hash code of this blank node.
        Specified by:
        hashCode in interface BNode
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code for this blank node computed as BNode.getID().hashCode()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object