[
https://issues.apache.org/jira/browse/COMMONSRDF-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492546#comment-14492546
]
Reto Gmür commented on COMMONSRDF-14:
-------------------------------------
We can define it however we want, we could define it to be always 0, this would
be terribly inefficient but not violating the hashCode contract. But if we
don't define it, instances from different implementations wont be interoperable.
> Define value returned by hashCode()
> -----------------------------------
>
> Key: COMMONSRDF-14
> URL: https://issues.apache.org/jira/browse/COMMONSRDF-14
> Project: Apache Commons RDF
> Issue Type: Improvement
> Reporter: Reto Gmür
> Priority: Critical
>
> To allow interoperability the API must define what the hashCode for Literals
> and IRIs has to be. For grounded Triples the hashcode of instances of
> different implementations should also be equals, so the API should also
> define the hashcode of a triple as a function of the hashcode of its
> subjects, predicate and object.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)