Class SimpleColumnMatcher
- java.lang.Object
-
- com.healthmarketscience.jackcess.util.SimpleColumnMatcher
-
- All Implemented Interfaces:
ColumnMatcher
public class SimpleColumnMatcher extends Object implements ColumnMatcher
Simple concrete implementation of ColumnMatcher which tests for equality. If initial comparison fails, attempts to coerce the values to a common type for comparison.- Author:
- James Ahlborn
- Usage:
- General: This class is general use.
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleColumnMatcherINSTANCE
-
Constructor Summary
Constructors Constructor Description SimpleColumnMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(Table table, String columnName, Object value1, Object value2)Returnstrueif the given value1 should be considered a match for the given value2 for the given column in the given table,falseotherwise.
-
-
-
Field Detail
-
INSTANCE
public static final SimpleColumnMatcher INSTANCE
-
-
Method Detail
-
matches
public boolean matches(Table table, String columnName, Object value1, Object value2)
Description copied from interface:ColumnMatcherReturnstrueif the given value1 should be considered a match for the given value2 for the given column in the given table,falseotherwise.- Specified by:
matchesin interfaceColumnMatcher- Parameters:
table- the relevant tablecolumnName- the name of the relevant column within the tablevalue1- the first value to match (may benull)value2- the second value to match (may benull)
-
-