A utility class for comparing numbers.
| double | LONG_EXCLUSIVE_UPPER_BOUND_AS_DOUBLE | |
| double | LONG_INCLUSIVE_LOWER_BOUND_AS_DOUBLE | |
| long | MAX_SAFE_LONG | The maximum value in the main range of integers representable as both long and double. |
| long | MIN_SAFE_LONG | The minimum value in the main range of integers representable as both long and double. |
| static int |
compareLongs(long leftLong, long rightLong)
Compares longs.
|
| static int |
firestoreCompareDoubleWithLong(double doubleValue, long longValue)
Compares a double and a with Firestore query semantics: NaN precedes all other numbers and
equals itself, all zeroes are equal.
|
| static int |
firestoreCompareDoubles(double leftDouble, double rightDouble)
Compares doubles with Firestore query semantics: NaN precedes all other numbers and equals
itself, all zeroes are equal.
|
The maximum value in the main range of integers representable as both long and double.
The minimum value in the main range of integers representable as both long and double.
Compares longs. Note that we can't use Long.compare because it's only available after Android 19.
| leftLong | |
|---|---|
| rightLong |
Compares a double and a with Firestore query semantics: NaN precedes all other numbers and equals itself, all zeroes are equal.
| doubleValue | |
|---|---|
| longValue |
Compares doubles with Firestore query semantics: NaN precedes all other numbers and equals itself, all zeroes are equal.
| leftDouble | |
|---|---|
| rightDouble |