commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (LANG-1665) Modify Tuple equals to take BigDecimal comparison
Date Mon, 02 Aug 2021 03:08:00 GMT


ASF GitHub Bot logged work on LANG-1665:

                Author: ASF GitHub Bot
            Created on: 02/Aug/21 03:07
            Start Date: 02/Aug/21 03:07
    Worklog Time Spent: 10m 
      Work Description: XenoAmess commented on pull request #780:

   > @garydgregory @aherbert
   > Thank you guys for the feedback. I'm convinced of all the discussions above.
   > > This issue suggests the need for a custom set of Number subclasses with a policy
enum that dictates what kind of equality you want. But such a class belongs in Commons Numbers/Math,
not Lang.
   > This kind of feedback is exactly what I wanted. An intention of that ignorable PR
is to receive a point of view like if there's a right place for it. Do you think that it'd
be worth adding such a class in a right package?
   @toyopilgrim I think you'd better ask this question in the mailing list, means 
   Commons Developers List <>
   because if my memory be correct the guy mainly maintaining commons-math do not use github
quite much

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail:

For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 632130)
    Time Spent: 1h 20m  (was: 1h 10m)

> Modify Tuple equals to take BigDecimal comparison
> -------------------------------------------------
>                 Key: LANG-1665
>                 URL:
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.tuple.*
>    Affects Versions: 3.12.0
>            Reporter: Chikashi Toyoshima
>            Priority: Trivial
>             Fix For: 3.12.0
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
> I understand that this would be a bit controversial. Imhp as possibly ignorable suggestion,
it'd be more helpful if the Tuple supports BgDecimal numeric equality rather than simply checking
> In a particular case, you may want to check if a collection of pairs contain a certain
pair which includes BigDecimal values. Then to check object equality is maybe just right or
not. But in many cases, I assume that numeric comparison would be more demanded such as following
simple example. 
> {code:java}
> Set<Pair<String, BigDecimal>> someCollection = getPairs(); 
> someCollection.contains(Pair.of("foo", BigDecimal.valueOf(100))); 
> {code}
> I created the PR. Please take a look. I'm happy to whichever it is accepted or not receiving
> []

This message was sent by Atlassian Jira

View raw message