[
https://issues.apache.org/jira/browse/COMMONSRDF-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528665#comment-14528665
]
Stian Soiland-Reyes commented on COMMONSRDF-14:
-----------------------------------------------
I've tried, but you can't do a default method for methods from Object. So we
will just have to define it with a contract.
I think now with uniqueReference() we have the last piece of this puzzle, as we
can simply define the BlankNode.hashCode() as being
uniqueReference().hashCode().
> 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
> Fix For: 0.2
>
>
> 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)