/libcore/ojluni/src/main/java/java/util/stream/ |
D | MatchOps.java | 79 public static <T> TerminalOp<T, Boolean> makeRef(Predicate<? super T> predicate, in makeRef() argument 81 Objects.requireNonNull(predicate); in makeRef() 90 if (!stop && predicate.test(t) == matchKind.stopOnPredicateMatches) { in makeRef() 108 public static TerminalOp<Integer, Boolean> makeInt(IntPredicate predicate, in makeInt() argument 110 Objects.requireNonNull(predicate); in makeInt() 119 if (!stop && predicate.test(t) == matchKind.stopOnPredicateMatches) { in makeInt() 137 public static TerminalOp<Long, Boolean> makeLong(LongPredicate predicate, in makeLong() argument 139 Objects.requireNonNull(predicate); in makeLong() 149 if (!stop && predicate.test(t) == matchKind.stopOnPredicateMatches) { in makeLong() 167 public static TerminalOp<Double, Boolean> makeDouble(DoublePredicate predicate, in makeDouble() argument [all …]
|
D | DoubleStream.java | 90 DoubleStream filter(DoublePredicate predicate); in filter() argument 612 boolean anyMatch(DoublePredicate predicate); in anyMatch() argument 635 boolean allMatch(DoublePredicate predicate); in allMatch() argument 658 boolean noneMatch(DoublePredicate predicate); in noneMatch() argument
|
D | IntPipeline.java | 330 public final IntStream filter(IntPredicate predicate) { 331 Objects.requireNonNull(predicate); 344 if (predicate.test(t)) 477 public final boolean anyMatch(IntPredicate predicate) { 478 return evaluate(MatchOps.makeInt(predicate, MatchOps.MatchKind.ANY)); 482 public final boolean allMatch(IntPredicate predicate) { 483 return evaluate(MatchOps.makeInt(predicate, MatchOps.MatchKind.ALL)); 487 public final boolean noneMatch(IntPredicate predicate) { 488 return evaluate(MatchOps.makeInt(predicate, MatchOps.MatchKind.NONE));
|
D | LongPipeline.java | 311 public final LongStream filter(LongPredicate predicate) { 312 Objects.requireNonNull(predicate); 325 if (predicate.test(t)) 459 public final boolean anyMatch(LongPredicate predicate) { 460 return evaluate(MatchOps.makeLong(predicate, MatchOps.MatchKind.ANY)); 464 public final boolean allMatch(LongPredicate predicate) { 465 return evaluate(MatchOps.makeLong(predicate, MatchOps.MatchKind.ALL)); 469 public final boolean noneMatch(LongPredicate predicate) { 470 return evaluate(MatchOps.makeLong(predicate, MatchOps.MatchKind.NONE));
|
D | DoublePipeline.java | 294 public final DoubleStream filter(DoublePredicate predicate) { 295 Objects.requireNonNull(predicate); 308 if (predicate.test(t)) 481 public final boolean anyMatch(DoublePredicate predicate) { 482 return evaluate(MatchOps.makeDouble(predicate, MatchOps.MatchKind.ANY)); 486 public final boolean allMatch(DoublePredicate predicate) { 487 return evaluate(MatchOps.makeDouble(predicate, MatchOps.MatchKind.ALL)); 491 public final boolean noneMatch(DoublePredicate predicate) { 492 return evaluate(MatchOps.makeDouble(predicate, MatchOps.MatchKind.NONE));
|
D | IntStream.java | 88 IntStream filter(IntPredicate predicate); in filter() argument 557 boolean anyMatch(IntPredicate predicate); in anyMatch() argument 580 boolean allMatch(IntPredicate predicate); in allMatch() argument 603 boolean noneMatch(IntPredicate predicate); in noneMatch() argument
|
D | LongStream.java | 92 LongStream filter(LongPredicate predicate); in filter() argument 561 boolean anyMatch(LongPredicate predicate); in anyMatch() argument 584 boolean allMatch(LongPredicate predicate); in allMatch() argument 607 boolean noneMatch(LongPredicate predicate); in noneMatch() argument
|
D | ReferencePipeline.java | 161 public final Stream<P_OUT> filter(Predicate<? super P_OUT> predicate) { 162 Objects.requireNonNull(predicate); 175 if (predicate.test(u)) 449 public final boolean anyMatch(Predicate<? super P_OUT> predicate) { 450 return evaluate(MatchOps.makeRef(predicate, MatchOps.MatchKind.ANY)); 454 public final boolean allMatch(Predicate<? super P_OUT> predicate) { 455 return evaluate(MatchOps.makeRef(predicate, MatchOps.MatchKind.ALL)); 459 public final boolean noneMatch(Predicate<? super P_OUT> predicate) { 460 return evaluate(MatchOps.makeRef(predicate, MatchOps.MatchKind.NONE));
|
D | Stream.java | 166 Stream<T> filter(Predicate<? super T> predicate); in filter() argument 872 boolean anyMatch(Predicate<? super T> predicate); in anyMatch() argument 895 boolean allMatch(Predicate<? super T> predicate); in allMatch() argument 918 boolean noneMatch(Predicate<? super T> predicate); in noneMatch() argument
|
D | Collectors.java | 1109 Collector<T, ?, Map<Boolean, List<T>>> partitioningBy(Predicate<? super T> predicate) { 1110 return partitioningBy(predicate, toList()); 1135 Collector<T, ?, Map<Boolean, D>> partitioningBy(Predicate<? super T> predicate, 1139 … downstreamAccumulator.accept(predicate.test(t) ? result.forTrue : result.forFalse, t);
|
/libcore/ojluni/src/main/java/java/util/ |
D | Optional.java | 168 public Optional<T> filter(Predicate<? super T> predicate) { in filter() argument 169 Objects.requireNonNull(predicate); in filter() 173 return predicate.test(value) ? this : empty(); in filter()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TabulatorsTest.java | 144 private final Predicate<T> predicate; field in TabulatorsTest.PartitionAssertion 147 protected PartitionAssertion(Predicate<T> predicate, in PartitionAssertion() argument 149 this.predicate = predicate; in PartitionAssertion() 159 downstream.assertValue(map.get(true), () -> source.get().filter(predicate), ordered); in assertValue() 160 … downstream.assertValue(map.get(false), () -> source.get().filter(predicate.negate()), ordered); in assertValue()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LambdaTestHelpers.java | 127 …public static <T, R> Function<T, R> forPredicate(Predicate<? super T> predicate, R forTrue, R forF… in forPredicate() argument 128 Objects.requireNonNull(predicate); in forPredicate() 130 return t -> predicate.test(t) ? forTrue : forFalse; in forPredicate()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LambdaTestHelpers.java | 128 …public static <T, R> Function<T, R> forPredicate(Predicate<? super T> predicate, R forTrue, R forF… in forPredicate() argument 129 Objects.requireNonNull(predicate); in forPredicate() 131 return t -> predicate.test(t) ? forTrue : forFalse; in forPredicate()
|