Index: web-module/src/main/java/egovframework/com/ext/jstree/support/util/Java8Lambda.java =================================================================== diff -u --- web-module/src/main/java/egovframework/com/ext/jstree/support/util/Java8Lambda.java (revision 0) +++ web-module/src/main/java/egovframework/com/ext/jstree/support/util/Java8Lambda.java (revision 366cf516bedd4538eb63dbff96de1ffc659d30ba) @@ -0,0 +1,14 @@ +package egovframework.com.ext.jstree.support.util; + +/** + * Created by Administrator on 2018-07-12. + */ +public class Java8Lambda { + + private String givenName; + private String surName; + private int age; + private String eMail; + private String phone; + private String address; +} Index: web-module/src/test/java/egovframework/com/ext/jstree/support/util/Java8LambdaTest.java =================================================================== diff -u --- web-module/src/test/java/egovframework/com/ext/jstree/support/util/Java8LambdaTest.java (revision 0) +++ web-module/src/test/java/egovframework/com/ext/jstree/support/util/Java8LambdaTest.java (revision 366cf516bedd4538eb63dbff96de1ffc659d30ba) @@ -0,0 +1,29 @@ +package egovframework.com.ext.jstree.support.util; + +import org.junit.Test; + +/** + * Created by Administrator on 2018-07-12. + */ +public class Java8LambdaTest { + + @Test + public void functionalJavaTest1() { + System.out.println("=== RunnableTest ==="); + // Anonymous Runnable + Runnable r1 = new Runnable() { + @Override + public void run() { + System.out.println("Hello world one!"); + } + }; + + // Lambda Runnable + Runnable r2 = () -> System.out.println("Hello world two!"); + + // Run em! + r1.run(); + r2.run(); + } + +}