Class AbstractIRI

    • Nested Class Summary

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

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

      Constructors 
      Constructor Description
      AbstractIRI()  
    • Constructor Detail

      • AbstractIRI

        public AbstractIRI()
    • 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: IRI
        Compares this IRI to another object.
        Specified by:
        equals in interface IRI
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the object to compare this IRI to
        Returns:
        true, if the other object is an instance of IRI and their string values are equal; false, otherwise
      • hashCode

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

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