lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhershko <...@git.apache.org>
Subject [GitHub] lucenenet pull request: Fix on the PQ.
Date Tue, 10 Feb 2015 23:07:31 GMT
Github user synhershko commented on the pull request:

    https://github.com/apache/lucenenet/pull/92#issuecomment-73803989
  
    Because as you indicate, items are not compared based on one strategy always. See the
link I posted for another example of this.
    
    `IComparer` is more suitable for those scenarios. I'm not saying make `T` an `IComparer`,
I'm saying lets remove the requirement for `T` to implement `IComparable` and instead provide
PQ with an `IComparer`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message