@Override public int hashCode() { return this.field.hashCode(); }
@Override public int hashCode() { return this.field.hashCode(); }
@Override public int hashCode() { return iri.hashCode(); }
protected IRIConstantImpl(IRI iri, TypeFactory typeFactory) { this.iri = iri; this.identifier = iri.hashCode(); this.type = typeFactory.getIRITermType(); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((dataType == null) ? 0 : dataType.hashCode()); result = prime * result + ((langTag == null) ? 0 : langTag.hashCode()); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((columnName == null) ? 0 : columnName.hashCode()); result = prime * result + ((constVal == null) ? 0 : constVal.hashCode()); result = prime * result + ((getNode() == null) ? 0 : getNode().hashCode()); result = prime * result + ((termTypeIRI == null) ? 0 : termTypeIRI.hashCode()); result = prime * result + ((termMapType == null) ? 0 : termMapType.hashCode()); return result; }
@Test public void hashCodeIRI() throws Exception { final IRI iri = factory.createIRI("http://example.com/"); assertEquals(iri.getIRIString().hashCode(), iri.hashCode()); }