Class ClassMatchMatcher

    • Constructor Detail

      • ClassMatchMatcher

        public ClassMatchMatcher​(Class<?> clazz)
    • Method Detail

      • fromString

        public Object fromString​(String checkValue)
        Description copied from interface: IMatcher
        Parse matching object from string.

        Note that type of return value can depend on format of checkValue. For example, it can be Integer or IntRange.

        Specified by:
        fromString in interface IMatcher
        Parameters:
        checkValue - string value of a cell
        Returns:
        matching value
      • match

        public boolean match​(Object var,
                             Object checkValue)
        Description copied from interface: IMatcher
        Check whether actual value and check value are match or satisfy matching operation.
        Specified by:
        match in interface IMatcher
        Parameters:
        var - actual value
        checkValue - check value
        Returns:
        true if it matches