public abstract class AbstractLiteral extends Object implements Literal
| Constructor and Description |
|---|
AbstractLiteral() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns true if
obj is an instance of
literal that is term-equal with this, false otherwise |
int |
hashCode()
Returns the hash code of the lexical form plus the hash code of the
datatype plus if the literal has a language the hash code of the
language.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDataType, getLanguage, getLexicalFormpublic int hashCode()
Literalpublic boolean equals(Object obj)
Literalobj is an instance of
literal that is term-equal with this, false otherwise
Two literals are term-equal (the same RDF literal) if and only if the two lexical forms, the two datatype IRIs, and the two language tags (if any) compare equal, character by character.
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.