Skip to content

Commit 728a05c

Browse files
committed
lambda 🎉
1 parent 0c6f240 commit 728a05c

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:3.1.4'
1111
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
12+
classpath 'me.tatarka:gradle-retrolambda:3.7.1'
1213
}
1314
}
1415

@@ -22,6 +23,8 @@ allprojects {
2223
apply plugin: 'base'
2324
apply from: file('version.gradle')
2425

26+
apply plugin: 'me.tatarka.retrolambda'
27+
2528
// This is applied to all sub projects
2629
subprojects {
2730
if(!project.name.equals('jme3-android-examples')) {
@@ -250,4 +253,11 @@ if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {
250253

251254
wrapper {
252255
gradleVersion = '5.6.4'
256+
}
257+
258+
259+
retrolambda {
260+
javaVersion JavaVersion.VERSION_1_7
261+
incremental true
262+
jvmArgs '-noverify'
253263
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.jme3.util.functional;
2+
3+
4+
public interface Function<R,T> {
5+
R eval(T t);
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
package com.jme3.util.functional;
3+
4+
public interface NoArgFunction<R> {
5+
R eval();
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
package com.jme3.util.functional;
3+
4+
public interface NoArgVoidFunction {
5+
void eval();
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
package com.jme3.util.functional;
3+
4+
public interface VoidFunction<T> {
5+
void eval(T t);
6+
}

0 commit comments

Comments
 (0)