1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 // © 2017 and later: Unicode, Inc. and others. 3 // License & terms of use: http://www.unicode.org/copyright.html#License 4 package ohos.global.icu.impl.number.parse; 5 6 /** 7 * @author sffc 8 * @hide exposed on OHOS 9 * 10 */ 11 public class RequireCurrencyValidator extends ValidationMatcher { 12 13 @Override postProcess(ParsedNumber result)14 public void postProcess(ParsedNumber result) { 15 if (result.currencyCode == null) { 16 result.flags |= ParsedNumber.FLAG_FAIL; 17 } 18 } 19 20 @Override toString()21 public String toString() { 22 return "<RequireCurrency>"; 23 } 24 25 } 26