Class SearchCompiler.AbstractBinaryMatch

    • Method Detail

      • map

        public <T,​U> U map​(java.util.function.Function<SearchCompiler.Match,​T> mapper,
                                 java.util.function.BiFunction<T,​T,​U> operator)
        First applies mapper to both sides and then applies operator on the two results.
        Type Parameters:
        T - the type of the intermediate result
        U - the type of the result
        Parameters:
        mapper - the mapping function
        operator - the operator
        Returns:
        operator.apply(mapper.apply(lhs), mapper.apply(rhs))
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object