You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2009/05/13 17:49:45 UTC

[jira] Commented: (AVRO-32) Generated classes should override equals and hashcode

    [ https://issues.apache.org/jira/browse/AVRO-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708978#action_12708978 ] 

Doug Cutting commented on AVRO-32:
----------------------------------

If we add equals and hashCode we should probably also implement Comparable, no?  We might even then add an "order" or somesuch option to fields, with values like "ignore" and "decreasing" that determine how the compareTo method is implemented.  And we'd probably also need GenericComparator, to implement the equivalent for generic data.

> Generated classes should override equals and hashcode
> -----------------------------------------------------
>
>                 Key: AVRO-32
>                 URL: https://issues.apache.org/jira/browse/AVRO-32
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Sharad Agarwal
>
> It would be good to have equals and hashcode implementation generated as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.