LEFT | RIGHT |
1 // © 2017 and later: Unicode, Inc. and others. | 1 // © 2017 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html#License | 2 // License & terms of use: http://www.unicode.org/copyright.html#License |
3 package com.ibm.icu.impl.number; | 3 package com.ibm.icu.impl.number; |
4 | 4 |
5 import java.math.BigDecimal; | 5 import java.math.BigDecimal; |
6 import java.math.BigInteger; | 6 import java.math.BigInteger; |
7 | 7 |
8 /** @author sffc */ | 8 /** @author sffc */ |
9 public class FormatQuantitySelector { | 9 public class FormatQuantitySelector { |
10 public static FormatQuantityBCD from(int input) { | 10 public static FormatQuantityBCD from(int input) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 } else if (number instanceof BigDecimal) { | 43 } else if (number instanceof BigDecimal) { |
44 return from((BigDecimal) number); | 44 return from((BigDecimal) number); |
45 } else if (number instanceof com.ibm.icu.math.BigDecimal) { | 45 } else if (number instanceof com.ibm.icu.math.BigDecimal) { |
46 return from((com.ibm.icu.math.BigDecimal) number); | 46 return from((com.ibm.icu.math.BigDecimal) number); |
47 } else { | 47 } else { |
48 throw new IllegalArgumentException( | 48 throw new IllegalArgumentException( |
49 "Number is of an unsupported type: " + number.getClass().getName()); | 49 "Number is of an unsupported type: " + number.getClass().getName()); |
50 } | 50 } |
51 } | 51 } |
52 } | 52 } |
LEFT | RIGHT |