Class LogicalTypeInfinite

    • Constructor Detail

    • Method Detail

      • isCandidate

        public abstract boolean isCandidate​(String trimmed,
                                            StringBuilder compressed,
                                            int[] charCounts,
                                            int[] lastIndex)
        A fast check to see if the supplied String might be an instance of this logical type?
        Parameters:
        trimmed - String to check
        compressed - A compressed representation of the input string (e.g. \d{5} for 20351).
        charCounts - An array of occurrence counts for characters in the input (ASCII-only).
        lastIndex - An array of the last index where character is located (ASCII-only).
        Returns:
        true iff the supplied String is a possible instance of this Logical type.
      • isRegExpComplete

        public boolean isRegExpComplete()
        Description copied from class: LogicalType
        Is the returned Regular Expression a true and complete representation of the Logical Type. For example, \\d{5} is not for US ZIP codes (e.g. 00000 is not a valid Zip), whereas (?i)(male|female) could be valid for a Gender.
        Overrides:
        isRegExpComplete in class LogicalType
        Returns:
        The Java Regular Expression that most closely matches this Logical Type.
      • isClosed

        public boolean isClosed()
        Description copied from class: LogicalType
        Does the set of members enumerated reflect the entire set. For example any of the ISO sets are reference sets and hence complete, compared to FirstName and LastName where the set provided is of the common names. If isClosed() is true then isValid() false does not imply that the input is not valid just that it is not in the set of 'known' members.
        Specified by:
        isClosed in class LogicalType
        Returns:
        A boolean indicating if the set is closed.