You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/12/17 23:40:13 UTC
[jira] [Commented] (THRIFT-2897) Generate -isEqual: and -hash
methods
[ https://issues.apache.org/jira/browse/THRIFT-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14250718#comment-14250718 ]
ASF GitHub Bot commented on THRIFT-2897:
----------------------------------------
GitHub user jimspeth opened a pull request:
https://github.com/apache/thrift/pull/330
THRIFT-2897: Implement hash and isEqual: methods.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dwnld/thrift THRIFT-2897
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/330.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #330
----
commit 7c8cde19882772010c917bd0be054952d62ac176
Author: Jim Speth <ji...@dwnld.me>
Date: 2014-12-17T22:37:59Z
Implement hash and isEqual: methods.
----
> Generate -isEqual: and -hash methods
> ------------------------------------
>
> Key: THRIFT-2897
> URL: https://issues.apache.org/jira/browse/THRIFT-2897
> Project: Thrift
> Issue Type: Improvement
> Components: Cocoa - Compiler
> Reporter: Jim Speth
> Priority: Minor
>
> There should be an option to generate -isEqual: and -hash methods for generated classes, so instances can be compared and used as keys in dictionaries.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)