This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch GEOMETRY-3__TBR in repository https://gitbox.apache.org/repos/asf/commons-geometry.git
commit 7e501487ecdcd9cfbb565da3e3eb972fb2e932bf Author: Matt Juntunen <[email protected]> AuthorDate: Sat Jun 16 15:00:23 2018 -0400 GEOMETRY-3: adding @FunctionalInterface to Coordinates.Factory?D interfaces --- .../main/java/org/apache/commons/geometry/core/util/Coordinates.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/Coordinates.java b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/Coordinates.java index 8ea6c77..c9c5fbc 100644 --- a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/Coordinates.java +++ b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/Coordinates.java @@ -23,6 +23,7 @@ public class Coordinates { /** Interface for classes that create objects from a single coordinate value. * @param <T> The type created by this factory. */ + @FunctionalInterface public interface Factory1D<T> { /** Creates a new instance of type T from the given coordinate value. @@ -35,6 +36,7 @@ public class Coordinates { /** Interface for classes that create objects from two coordinate values. * @param <T> The type created by this factory. */ + @FunctionalInterface public interface Factory2D<T> { /** Creates a new instance of type T from the given coordinate values. @@ -48,6 +50,7 @@ public class Coordinates { /** Interface for classes that create objects from three coordinate values. * @param <T> The type created by this factory. */ + @FunctionalInterface public interface Factory3D<T> { /** Creates a new instance of type T from the given coordinate values.
