Skip to content

Commit

Permalink
Enable Java 8 language features (#78)
Browse files Browse the repository at this point in the history
Closes #65

Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
  • Loading branch information
ezaquarii committed Sep 13, 2019
1 parent c1815d7 commit 4d9b9dd
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/**
* Represents an operation that accepts no input arguments and returns no result.
*/
@FunctionalInterface
public interface Action {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @param <T> The type of the input to the operation
*/
@FunctionalInterface
public interface Action1<T> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @param <T> The type of the input
* @param <T1> The type of the input
*/
@FunctionalInterface
public interface Action2<T, T1> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @param <T1> The type of the input to the operation
* @param <T2> The type of the input to the operation
*/
@FunctionalInterface
public interface Action3<T, T1, T2> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @param <T2> The type of the input to the operation
* @param <T3> The type of the input to the operation
*/
@FunctionalInterface
public interface Action4<T, T1, T2, T3> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* @param <R> Result type
*/
@FunctionalInterface
public interface Func<R> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @param <T1> Input argument type
* @param <R> Result type
*/
@FunctionalInterface
public interface Func2<T1, R> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @param <T2> Input argument type
* @param <R> Result type
*/
@FunctionalInterface
public interface Func3<T1, T2, R> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @param <T3> Input argument type
* @param <R> Result type
*/
@FunctionalInterface
public interface Func4<T1, T2, T3, R> {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.oxo42.stateless4j.delegates;

@FunctionalInterface
public interface FuncBoolean {

boolean call();
}

0 comments on commit 4d9b9dd

Please sign in to comment.