blob: fec6457e93e2aeb9056da47e80b688111465efc7 [file] [log] [blame]
// © 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
package com.ibm.icu.impl.number.parse;
/**
* @author sffc
*
*/
public class RequireCurrencyValidator extends ValidationMatcher {
@Override
public void postProcess(ParsedNumber result) {
if (result.currencyCode == null) {
result.flags |= ParsedNumber.FLAG_FAIL;
}
}
@Override
public String toString() {
return "<RequireCurrency>";
}
}