@Test public void checkHashCode() { String stringValue = "some text"; IRI uriRef = new IRI("http: Literal literal = new TypedLiteralImpl(stringValue, uriRef); Assert.assertEquals(stringValue.hashCode() + uriRef.hashCode(), literal.hashCode()); }
@Override public int hashCode() { return hashCode; }
TypedLiteralImpl extends AbstractLiteral implements Serializable { @Override public int hashCode() { return hashCode; } }
TypedLiteralImpl extends AbstractLiteral implements Serializable { @Override public int hashCode() { return hashCode; } TypedLiteralImpl(String lexicalForm, IRI dataType); }
TypedLiteralImpl extends AbstractLiteral implements Serializable { @Override public int hashCode() { return hashCode; } TypedLiteralImpl(String lexicalForm, IRI dataType); IRI getDataType(); @Override String getLexicalForm(); @Override int hashCode(); @Override String toString(); @Override Language getLanguage(); }
TypedLiteralImpl extends AbstractLiteral implements Serializable { @Override public int hashCode() { return hashCode; } TypedLiteralImpl(String lexicalForm, IRI dataType); IRI getDataType(); @Override String getLexicalForm(); @Override int hashCode(); @Override String toString(); @Override Language getLanguage();  }