Searched refs:TerminalOp (Results 1 - 8 of 8) sorted by relevance
/openjdk10/langtools/test/tools/javac/lambda/8016177/ |
H A D | T8016177e.java | 34 interface TerminalOp<X, Y> { } interface in class:T8016177e 40 <T> TerminalOp<T, Void> makeRef(Consumer<? super T> action) { return null; } 44 TerminalOp<T, Void> forEachOp = makeRef(t -> { map.put(t, null); });
|
/openjdk10/jdk/src/java.base/share/classes/java/util/stream/ |
H A D | TerminalOp.java | 31 * a result or side-effect. A {@code TerminalOp} has an input type and stream 32 * shape, and a result type. A {@code TerminalOp} also has a set of 37 * <p>A {@code TerminalOp} must provide a sequential and parallel implementation 45 interface TerminalOp<E_IN, R> { interface 83 Tripwire.trip(getClass(), "{0} triggering TerminalOp.evaluateParallel serial default");
|
H A D | FindOps.java | 37 * Factory for instances of a short-circuiting {@code TerminalOp} that searches 50 * Constructs a {@code TerminalOp} for streams of objects. 53 * @param mustFindFirst whether the {@code TerminalOp} must produce the 55 * @return a {@code TerminalOp} implementing the find operation 58 public static <T> TerminalOp<T, Optional<T>> makeRef(boolean mustFindFirst) { 59 return (TerminalOp<T, Optional<T>>) 64 * Constructs a {@code TerminalOp} for streams of ints. 66 * @param mustFindFirst whether the {@code TerminalOp} must produce the 68 * @return a {@code TerminalOp} implementing the find operation 70 public static TerminalOp<Intege [all...] |
H A D | MatchOps.java | 36 * Factory for instances of a short-circuiting {@code TerminalOp} that implement 76 * @return a {@code TerminalOp} implementing the desired quantified match 79 public static <T> TerminalOp<T, Boolean> makeRef(Predicate<? super T> predicate, 105 * @return a {@code TerminalOp} implementing the desired quantified match 108 public static TerminalOp<Integer, Boolean> makeInt(IntPredicate predicate, 134 * @return a {@code TerminalOp} implementing the desired quantified match 137 public static TerminalOp<Long, Boolean> makeLong(LongPredicate predicate, 164 * @return a {@code TerminalOp} implementing the desired quantified match 167 public static TerminalOp<Double, Boolean> makeDouble(DoublePredicate predicate, 190 * A short-circuiting {@code TerminalOp} tha [all...] |
H A D | ReduceOps.java | 46 * Factory for creating instances of {@code TerminalOp} that implement 56 * Constructs a {@code TerminalOp} that implements a functional reduce on 66 * @return a {@code TerminalOp} implementing the reduction 68 public static <T, U> TerminalOp<T, U> 97 * Constructs a {@code TerminalOp} that implements a functional reduce on 102 * @return A {@code TerminalOp} implementing the reduction 104 public static <T> TerminalOp<T, Optional<T>> 147 * Constructs a {@code TerminalOp} that implements a mutable reduce on 155 public static <T, I> TerminalOp<T, I> 193 * Constructs a {@code TerminalOp} tha [all...] |
H A D | ForEachOps.java | 39 * Factory for creating instances of {@code TerminalOp} that perform an 61 * Constructs a {@code TerminalOp} that perform an action for every element 68 * @return the {@code TerminalOp} instance 70 public static <T> TerminalOp<T, Void> makeRef(Consumer<? super T> action, 77 * Constructs a {@code TerminalOp} that perform an action for every element 83 * @return the {@code TerminalOp} instance 85 public static TerminalOp<Integer, Void> makeInt(IntConsumer action, 92 * Constructs a {@code TerminalOp} that perform an action for every element 98 * @return the {@code TerminalOp} instance 100 public static TerminalOp<Lon [all...] |
H A D | DistinctOps.java | 61 TerminalOp<T, LinkedHashSet<T>> reduceOp 82 TerminalOp<T, Void> forEachOp = ForEachOps.makeRef(t -> {
|
H A D | AbstractPipeline.java | 226 final <R> R evaluate(TerminalOp<E_OUT, R> terminalOp) {
|
Completed in 46 milliseconds