aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2020-04-27 00:44:02 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2020-04-27 00:44:02 +0000
commit400f6cf9622f416cfd922e52245a86f438fd9a3f (patch)
tree41d3ebc9727b64b7f0cf7aee9c67da4cdaf209d7 /src/main
parent11bf84249c9eea4fedacd12b9339fc197521d266 (diff)
downloadjackcess-400f6cf9622f416cfd922e52245a86f438fd9a3f.tar.gz
jackcess-400f6cf9622f416cfd922e52245a86f438fd9a3f.zip
tag functional interfaces; use lambda syntax
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1322 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/util/ColumnMatcher.java3
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/util/ColumnValidator.java1
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/util/ColumnValidatorFactory.java3
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/util/ErrorHandler.java7
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/util/LinkResolver.java1
5 files changed, 10 insertions, 5 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/util/ColumnMatcher.java b/src/main/java/com/healthmarketscience/jackcess/util/ColumnMatcher.java
index 3a1d3ae..6291020 100644
--- a/src/main/java/com/healthmarketscience/jackcess/util/ColumnMatcher.java
+++ b/src/main/java/com/healthmarketscience/jackcess/util/ColumnMatcher.java
@@ -25,7 +25,8 @@ import com.healthmarketscience.jackcess.Table;
* @author James Ahlborn
* @usage _intermediate_class_
*/
-public interface ColumnMatcher
+@FunctionalInterface
+public interface ColumnMatcher
{
/**
diff --git a/src/main/java/com/healthmarketscience/jackcess/util/ColumnValidator.java b/src/main/java/com/healthmarketscience/jackcess/util/ColumnValidator.java
index ffe2e71..719870a 100644
--- a/src/main/java/com/healthmarketscience/jackcess/util/ColumnValidator.java
+++ b/src/main/java/com/healthmarketscience/jackcess/util/ColumnValidator.java
@@ -27,6 +27,7 @@ import com.healthmarketscience.jackcess.Column;
*
* @author James Ahlborn
*/
+@FunctionalInterface
public interface ColumnValidator
{
/**
diff --git a/src/main/java/com/healthmarketscience/jackcess/util/ColumnValidatorFactory.java b/src/main/java/com/healthmarketscience/jackcess/util/ColumnValidatorFactory.java
index c1a4034..14bf3d4 100644
--- a/src/main/java/com/healthmarketscience/jackcess/util/ColumnValidatorFactory.java
+++ b/src/main/java/com/healthmarketscience/jackcess/util/ColumnValidatorFactory.java
@@ -25,7 +25,8 @@ import com.healthmarketscience.jackcess.Column;
*
* @author James Ahlborn
*/
-public interface ColumnValidatorFactory
+@FunctionalInterface
+public interface ColumnValidatorFactory
{
/**
* Returns a ColumnValidator instance for the given column, or {@code null}
diff --git a/src/main/java/com/healthmarketscience/jackcess/util/ErrorHandler.java b/src/main/java/com/healthmarketscience/jackcess/util/ErrorHandler.java
index fe9197b..48ddcb7 100644
--- a/src/main/java/com/healthmarketscience/jackcess/util/ErrorHandler.java
+++ b/src/main/java/com/healthmarketscience/jackcess/util/ErrorHandler.java
@@ -27,11 +27,12 @@ import com.healthmarketscience.jackcess.Table;
* or Cursor level to customize error handling as desired. The default
* instance used is {@link #DEFAULT}, which just rethrows any exceptions
* encountered.
- *
+ *
* @author James Ahlborn
* @usage _intermediate_class_
*/
-public interface ErrorHandler
+@FunctionalInterface
+public interface ErrorHandler
{
/**
* default error handler used if none provided (just rethrows exception)
@@ -75,7 +76,7 @@ public interface ErrorHandler
/**
* Provides location information for an error.
*/
- public interface Location
+ public interface Location
{
/**
* @return the table in which the error occurred
diff --git a/src/main/java/com/healthmarketscience/jackcess/util/LinkResolver.java b/src/main/java/com/healthmarketscience/jackcess/util/LinkResolver.java
index c1beee3..8e6fd82 100644
--- a/src/main/java/com/healthmarketscience/jackcess/util/LinkResolver.java
+++ b/src/main/java/com/healthmarketscience/jackcess/util/LinkResolver.java
@@ -29,6 +29,7 @@ import com.healthmarketscience.jackcess.impl.DatabaseImpl;
* @author James Ahlborn
* @usage _intermediate_class_
*/
+@FunctionalInterface
public interface LinkResolver
{
/**