Interface ColumnMatcher

  • All Known Implementing Classes:
    CaseInsensitiveColumnMatcher, SimpleColumnMatcher
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ColumnMatcher
    Interface for handling comparisons between column values.
    Author:
    James Ahlborn
    Usage:
    Intermediate: This class requires moderate API knowledge.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean matches​(Table table, String columnName, Object value1, Object value2)
      Returns true if the given value1 should be considered a match for the given value2 for the given column in the given table, false otherwise.
    • Method Detail

      • matches

        boolean matches​(Table table,
                        String columnName,
                        Object value1,
                        Object value2)
        Returns true if the given value1 should be considered a match for the given value2 for the given column in the given table, false otherwise.
        Parameters:
        table - the relevant table
        columnName - the name of the relevant column within the table
        value1 - the first value to match (may be null)
        value2 - the second value to match (may be null)