Class BooleanPrimitiveMatch

    • Constructor Detail

      • BooleanPrimitiveMatch

        public BooleanPrimitiveMatch()
    • 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
      • getInstanceIfSupports

        public IMatcher getInstanceIfSupports​(IOpenClass type)
        Description copied from interface: IMatcherBuilder
        Get instance of matcher for a given type.

        It can create new instance of the matcher each time or return *itself* if one matcher is enough. It is useful for enums and e.t.c

        Specified by:
        getInstanceIfSupports in interface IMatcherBuilder
        Parameters:
        type - variable's class
        Returns:
        null if type is not supported; or instance of a matcher
      • 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