diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-11-22 11:27:23 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-11-22 11:27:23 +0000 |
| commit | 485753856e0e97d64c5e36dbb5b81afa6efbe06a (patch) | |
| tree | 679b14025d6040ccfbc047fc1737cb7247c01c05 /src/test/resources | |
| parent | 7b13fe3b90542a276355e8b8de1fe49afe68c7b3 (diff) | |
Read lambdas with arguments
Diffstat (limited to 'src/test/resources')
| -rw-r--r-- | src/test/resources/java/lambda/com/example/Lambda.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/resources/java/lambda/com/example/Lambda.java b/src/test/resources/java/lambda/com/example/Lambda.java new file mode 100644 index 0000000..be8404e --- /dev/null +++ b/src/test/resources/java/lambda/com/example/Lambda.java @@ -0,0 +1,10 @@ +package com.example; + +import java.util.function.Function; + +public class Lambda { + public static int value() { + Function<Integer, Integer> function = value -> value * 2; + return function.apply(21); + } +} |
