-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MaxOf and MinOf #460
Comments
Hi, Yegor!
In current time:
|
@bedward70 please, take a look at how |
@yegor256 I consider the MaxOf must return generic original type.
In current implementation if we add public 'MaxOf(final int... src)' constructor (no generic types in the constructor declaration), we can't set generic members. If we do MaxOf like SumOf, we will get the Comparable interface only. So, we will have to use casting a result. I think it is terrible.
I can't give any example code. |
@bedward70 please, see the changes I made in 25dc45d What do you think about these |
@yegor256 the
So, we also need the old |
@bedward70 I guess we just need two new classes |
@bedward70 yes, please, go ahead. Thanks! |
@rultor release, tag is |
…port Comparable implementations
Oops! There is no order for job |
Oops! Job |
Oops! There is no order for job |
Oops! Job |
Let's rename
Max
toMaxOf
,Min
toMinOf
and make it possible to provide a list of primitives there, just like SumOf works. Also, I think we need to implement them the waySumOf
works.The text was updated successfully, but these errors were encountered: