diff options
Diffstat (limited to 'src/test/resources/java/implement-user-interface/com/example/ConstantIntSupplier.java')
| -rw-r--r-- | src/test/resources/java/implement-user-interface/com/example/ConstantIntSupplier.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/resources/java/implement-user-interface/com/example/ConstantIntSupplier.java b/src/test/resources/java/implement-user-interface/com/example/ConstantIntSupplier.java new file mode 100644 index 0000000..5198d61 --- /dev/null +++ b/src/test/resources/java/implement-user-interface/com/example/ConstantIntSupplier.java @@ -0,0 +1,14 @@ +package com.example; + +import java.util.function.Supplier; + +public class ConstantIntSupplier implements IntSupplier { + public static int value() { + IntSupplier supplier = new ConstantIntSupplier(); + return supplier.get(); + } + + public int get() { + return 42; + } +} |
