Class SpoofChecker.CheckResult

  • Enclosing class:
    SpoofChecker

    public static class SpoofChecker.CheckResult
    extends java.lang.Object
    A struct-like class to hold the results of a Spoof Check operation. Tells which check(s) have failed.
    • Constructor Summary

      Constructors 
      Constructor Description
      CheckResult()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • checks

        public int checks
        Indicates which of the spoof check(s) have failed. The value is a bitwise OR of the constants for the tests in question: RESTRICTION_LEVEL, CHAR_LIMIT, and so on.
        See Also:
        SpoofChecker.Builder.setChecks(int)
      • position

        @Deprecated
        public int position
        Deprecated.
        ICU 51. No longer supported. Always set to zero.
        The index of the first string position that failed a check.
      • numerics

        public UnicodeSet numerics
        The numerics found in the string, if MIXED_NUMBERS was set; otherwise null. The set will contain the zero digit from each decimal number system found in the input string.
      • restrictionLevel

        public SpoofChecker.RestrictionLevel restrictionLevel
        The restriction level that the text meets, if RESTRICTION_LEVEL is set; otherwise null.
    • Constructor Detail

      • CheckResult

        public CheckResult()
        Default constructor
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object