Closed GoogleCodeExporter closed 9 years ago
We're not going to do this, for a few reasons.
1) It would be nonsensical and weird to provide equality methods in the Objects
class for non-objects.
2) Objects.equal already works for primitives (by autoboxing), and already
provides the behavior you want on floats and doubles.
3) If your concern is the boxing overhead, there are already efficient and
readable ways to compare floats and doubles with the same semantics as
Double.equals(Object) without boxing, e.g. Double.compare(a, b) == 0. (I just
tested this.)
Original comment by lowas...@google.com
on 27 Sep 2013 at 8:07
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:12
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:08
Original issue reported on code.google.com by
karl...@gmail.com
on 27 Sep 2013 at 7:57