• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 RequireNumberValidator extends ValidationMatcher {
12 
13     @Override
postProcess(ParsedNumber result)14     public void postProcess(ParsedNumber result) {
15         // Require that a number is matched.
16         if (!result.seenNumber()) {
17             result.flags |= ParsedNumber.FLAG_FAIL;
18         }
19     }
20 
21     @Override
toString()22     public String toString() {
23         return "<RequireNumber>";
24     }
25 
26 }
27