mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Update payment failure ux.
This commit is contained in:
committed by
Cody Henthorne
parent
8a00caabd7
commit
f260633c9d
@@ -6,6 +6,7 @@ import java.math.BigDecimal;
|
||||
import java.text.NumberFormat;
|
||||
import java.util.Currency;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
|
||||
public class FiatMoney {
|
||||
private final BigDecimal amount;
|
||||
@@ -64,4 +65,10 @@ public class FiatMoney {
|
||||
|
||||
return formatter.format(amount.multiply(multiplicand));
|
||||
}
|
||||
|
||||
public static boolean equals(FiatMoney left, FiatMoney right) {
|
||||
return Objects.equals(left.amount, right.amount) &&
|
||||
Objects.equals(left.currency, right.currency) &&
|
||||
Objects.equals(left.timestamp, right.timestamp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user