Github user stain commented on the issue:

    https://github.com/apache/incubator-commonsrdf/pull/26
  
    Thanks for your review, @ajs6f! I've updated the text correspondingly.
    
    I'll expand that it only needs to be immutable on `.equals()` term - not 
object identity. Thus if you want you could make a `Triple` that returns a new 
equivalent instance on every call to `getSubject()` etc without having to cache 
- I think the RDF4J `TripleImpl` does that.
    
    I don't think `default` methods fit here, as sadly you can't provide those 
for `java.lang.Object` methods like `.equals()` and `hashCode()`. 
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to