Class SpoofChecker.CheckResult

  • Enclosing class:
    SpoofChecker

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

      • checks

        public int checks
        Indicate which of the spoof check(s) has failed. The value is a bitwise OR of the constants for the tests in question, SINGLE_SCRIPT_CONFUSABLE, MIXED_SCRIPT_CONFUSABLE, WHOLE_SCRIPT_CONFUSABLE, and so on.
      • 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

        @Deprecated
        public UnicodeSet numerics
        Deprecated.
        This API is ICU internal only.
        The numerics found in the string, if MIXED_NUMBERS was set; otherwise null;
      • restrictionLevel

        @Deprecated
        public SpoofChecker.RestrictionLevel restrictionLevel
        Deprecated.
        This API is ICU internal only.
        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 String toString()
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.