APIdia Launch Partner
Top Description Fields Constructors Methods
io.github.spannm.jackcess.util

public Class SimpleColumnMatcher

extends Object
implements ColumnMatcher
Class Inheritance
All Implemented Interfaces
io.github.spannm.jackcess.util.ColumnMatcher
Imports
io.github.spannm.jackcess.DataType, .Table, io.github.spannm.jackcess.impl.ColumnImpl, .DatabaseImpl, java.io.IOException, java.util.Arrays, .Objects

Simple concrete implementation of ColumnMatcher which tests for equality. If initial comparison fails, attempts to coerce the values to a common type for comparison.

Field Summary

Modifier and TypeField and Description
public static final SimpleColumnMatcher

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
equals(Object o1, Object o2)

Returns true if the two objects are equal, handling null and objects of type byte[].

public boolean
matches(Table table, String columnName, Object value1, Object value2)

Implements io.github.spannm.jackcess.util.ColumnMatcher.matches.

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final SimpleColumnMatcher INSTANCE

Constructor Detail

SimpleColumnMatcherback to summary
public SimpleColumnMatcher()

Method Detail

equalsback to summary
private static boolean equals(Object o1, Object o2)

Returns true if the two objects are equal, handling null and objects of type byte[].

matchesback to summary
public boolean matches(Table table, String columnName, Object value1, Object value2)

Implements io.github.spannm.jackcess.util.ColumnMatcher.matches.

Doc from io.github.spannm.jackcess.util.ColumnMatcher.matches.

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.

Annotations
@Override