MCPcopy Create free account
hub / github.com/bsideup/jabel / call

Method call

example/src/main/java/com/example/JabelExample.java:36–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 var callable = new Callable<>() {
35
36 @Override
37 public String call() {
38 // Var in lambda parameter
39 Function<Object, String> function = (var prefix) -> {
40 // Pattern Matching in instanceof
41 // https://openjdk.java.net/jeps/305
42 if (prefix instanceof String s) {
43 return s + Integer.toString(0);
44 } else {
45 throw new IllegalArgumentException("Expected string!");
46 }
47 };
48 // Test indy strings
49 return function.apply("idk ");
50 }
51 };
52
53 var closeable = new AutoCloseable() {

Callers 1

outerPrivateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected