HomeSort by relevance Sort by last modified time
    Searched refs:FunctionWithDefaultMethod (Results 1 - 2 of 2) sorted by null

  /external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/java8/
FunctionWithDefaultMethod.java 21 public interface FunctionWithDefaultMethod<T extends Number> extends Function<T, T> {
35 static FunctionWithDefaultMethod<Integer> inc(int add) {
40 * Implementation of {@link FunctionWithDefaultMethod} that overrides the default method.
43 public static class DoubleInts implements FunctionWithDefaultMethod<Integer> {
58 public static FunctionWithDefaultMethod<Integer> doubleLambda() {
62 public static FunctionWithDefaultMethod<Integer> incTwice(int add) {
66 public static FunctionWithDefaultMethod<Integer> times5() {
70 public static Function<Integer, FunctionWithDefaultMethod<Integer>> incFactory() {
71 return FunctionWithDefaultMethod::inc;
76 public static class DoubleInts2 extends DoubleInts implements FunctionWithDefaultMethod<Integer>
    [all...]
  /external/desugar/test/java/com/google/devtools/build/android/desugar/
DesugarJava8FunctionalTest.java 29 import com.google.devtools.build.android.desugar.testdata.java8.FunctionWithDefaultMethod;
124 List<Long> result = FunctionWithDefaultMethod.DoubleInts.add(ImmutableList.of(7, 39, 8), 3);
130 FunctionWithDefaultMethod<Integer> doubler = new FunctionWithDefaultMethod.DoubleInts();
137 FunctionWithDefaultMethod<Integer> doubler = new FunctionWithDefaultMethod.DoubleInts2();
144 FunctionWithDefaultMethod<Integer> doubler =
145 FunctionWithDefaultMethod.DoubleInts.doubleLambda();
152 FunctionWithDefaultMethod<Integer> plus6 = FunctionWithDefaultMethod.DoubleInts.incTwice(3)
    [all...]

Completed in 101 milliseconds