/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.phases.common/src/org/graalvm/compiler/phases/common/ |
H A D | LazyValue.java | 28 * A {@link Supplier} which always returns the same value, computed from an other supplier on the 32 * This implementation is not thread-safe and assumes the underlying supplier does not return null. 33 * If the underlying supplier returns null it will be called on each access until it returns a 38 private final Supplier<T> supplier; field in class:LazyValue 41 public LazyValue(Supplier<T> supplier) { argument 42 this.supplier = supplier; 48 value = supplier.get();
|
/openjdk10/langtools/test/tools/javac/lambda/8023558/ |
H A D | T8023558b.java | 36 public A(Supplier<B> supplier) { } argument 55 public void test(Supplier<C> supplier) { argument 56 new A(supplier.get()::getB);
|
/openjdk10/jdk/test/java/util/Collection/testlibrary/ |
H A D | CollectionSupplier.java | 62 * The supplier of a collection 64 public Function<Collection<Integer>, C> supplier; field in class:CollectionSupplier.TestCase 82 public TestCase(String name, Function<Collection<Integer>, C> supplier, C collection) { argument 84 this.supplier = supplier; 131 for (final Function<Collection<Integer>, C> supplier : suppliers) 133 cases.add(new TestCase<>("empty", supplier, supplier.apply(Collections.emptyList()))); 135 cases.add(new TestCase<>("single", supplier, supplier [all...] |
H A D | ExtendsAbstractList.java | 47 protected ExtendsAbstractList(Supplier<List<E>> supplier) { argument 48 this.list = supplier.get();
|
/openjdk10/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | SpliteratorTest.java | 47 public void testSpliterator(String name, Supplier<Spliterator<Integer>> supplier) { argument 48 SpliteratorTestHelper.testSpliterator(supplier); 52 public void testIntSpliterator(String name, Supplier<Spliterator.OfInt> supplier) { argument 53 SpliteratorTestHelper.testIntSpliterator(supplier); 57 public void testLongSpliterator(String name, Supplier<Spliterator.OfLong> supplier) { argument 58 SpliteratorTestHelper.testLongSpliterator(supplier); 62 public void testDoubleSpliterator(String name, Supplier<Spliterator.OfDouble> supplier) { argument 63 SpliteratorTestHelper.testDoubleSpliterator(supplier);
|
/openjdk10/jdk/test/java/util/logging/ |
H A D | LoggerSupplierAPIsTest.java | 108 static final CountingSupplier supplier = new CountingSupplier(); field in class:LoggerSupplierAPIsTest 124 supplier.reset(); 129 logger.log(Level.SEVERE, supplier); 130 logger.log(Level.WARNING, supplier); 131 logger.log(Level.INFO, supplier); 132 logger.log(Level.CONFIG, supplier); 133 logger.log(Level.FINE, supplier); 134 logger.log(Level.FINER, supplier); 135 logger.log(Level.FINEST, supplier); 146 logger.log(Level.SEVERE, new HelperEx(Level.SEVERE), supplier); [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/util/stream/ |
H A D | StreamSupport.java | 78 * <p>The {@link Supplier#get()} method will be invoked on the supplier no 89 * source. Since the supplier is only invoked after the terminal operation 96 * @param supplier a {@code Supplier} of a {@code Spliterator} 99 * {@code supplier.get().characteristics()}, otherwise undefined 107 public static <T> Stream<T> stream(Supplier<? extends Spliterator<T>> supplier, argument 110 Objects.requireNonNull(supplier); 111 return new ReferencePipeline.Head<>(supplier, 147 * <p>The {@link Supplier#get()} method will be invoked on the supplier no 158 * source. Since the supplier is only invoked after the terminal operation 164 * @param supplier 175 intStream(Supplier<? extends Spliterator.OfInt> supplier, int characteristics, boolean parallel) argument 243 longStream(Supplier<? extends Spliterator.OfLong> supplier, int characteristics, boolean parallel) argument 311 doubleStream(Supplier<? extends Spliterator.OfDouble> supplier, int characteristics, boolean parallel) argument [all...] |
H A D | Collector.java | 53 * <li>creation of a new result container ({@link #supplier()})</li> 64 * create a single result container using the supplier function, and invoke the 79 * be equivalent to {@code combiner.apply(a, supplier.get())}. 86 * A a1 = supplier.get(); 91 * A a2 = supplier.get(); 93 * A a3 = supplier.get(); 112 * result supplier, accumulator, or combiner functions.</li> 114 * the result supplier, accumulator, or combiner functions other than to 123 * supplier, accumulator, or combiner functions must be serially 157 * R container = collector.supplier() 203 Supplier<A> supplier(); method in interface:Collector 260 of(Supplier<R> supplier, BiConsumer<R, T> accumulator, BinaryOperator<R> combiner, Characteristics... characteristics) argument 291 of(Supplier<A> supplier, BiConsumer<A, T> accumulator, BinaryOperator<A> combiner, Function<A, R> finisher, Characteristics... characteristics) argument [all...] |
/openjdk10/jdk/test/lib/testlibrary/bootlib/java.base/java/util/ |
H A D | SpliteratorTestHelper.java | 47 public static void testSpliterator(Supplier<Spliterator<Integer>> supplier) { argument 48 testSpliterator(supplier, defaultContentAsserter()); 51 public static void testSpliterator(Supplier<Spliterator<Integer>> supplier, argument 53 testSpliterator(supplier, (Consumer<Integer> b) -> b, asserter); 56 public static void testIntSpliterator(Supplier<Spliterator.OfInt> supplier) { argument 57 testIntSpliterator(supplier, defaultContentAsserter()); 60 public static void testIntSpliterator(Supplier<Spliterator.OfInt> supplier, argument 62 testSpliterator(supplier, intBoxingConsumer(), asserter); 65 public static void testLongSpliterator(Supplier<Spliterator.OfLong> supplier) { argument 66 testLongSpliterator(supplier, defaultContentAsserte 69 testLongSpliterator(Supplier<Spliterator.OfLong> supplier, ContentAsserter<Long> asserter) argument 74 testDoubleSpliterator(Supplier<Spliterator.OfDouble> supplier) argument 78 testDoubleSpliterator(Supplier<Spliterator.OfDouble> supplier, ContentAsserter<Double> asserter) argument 149 testSpliterator(Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter, ContentAsserter<T> asserter) argument 170 testForEach( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter) argument 177 testTryAdvance( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter) argument 184 testMixedTryAdvanceForEach( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter) argument 191 testMixedTraverseAndSplit( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter) argument 198 testSplitOnce( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter) argument 205 testSplitSixDeep( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter) argument 212 testSplitUntilNull( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter) argument 244 testForEach( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter, ContentAsserter<T> asserter) argument 277 testTryAdvance( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter, ContentAsserter<T> asserter) argument 307 testMixedTryAdvanceForEach( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter, ContentAsserter<T> asserter) argument 338 testMixedTraverseAndSplit( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter, ContentAsserter<T> asserter) argument 382 testSplitAfterFullTraversal( Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter) argument 405 testSplitOnce( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter, ContentAsserter<T> asserter) argument 433 testSplitSixDeep( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter, ContentAsserter<T> asserter) argument 517 testSplitUntilNull( Collection<T> exp, Supplier<S> supplier, UnaryOperator<Consumer<T>> boxingAdapter, ContentAsserter<T> asserter) argument [all...] |
/openjdk10/jdk/test/java/lang/System/LoggerFinder/internal/BootstrapLogger/ |
H A D | BootstrapLoggerUtils.java | 49 static void setBootedHook(BooleanSupplier supplier) throws IllegalAccessException { argument 50 IS_BOOTED.set(null, supplier);
|
/openjdk10/langtools/test/tools/javac/generics/inference/8152832/ |
H A D | T8152832.java | 57 myStream(strings::stream, supplier -> { 58 assertEquals(expectedList, supplier.get().toFlatList(Function.identity()));
|
/openjdk10/jdk/test/java/net/httpclient/http2/server/ |
H A D | RedirectHandler.java | 31 final Supplier<String> supplier; field in class:RedirectHandler 34 supplier = redirectSupplier; 53 String location = supplier.get();
|
/openjdk10/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ |
H A D | DefaultPublisher.java | 42 private final Supplier<Optional<T>> supplier; field in class:DefaultPublisher 51 DefaultPublisher(Supplier<Optional<T>> supplier, Executor executor) { argument 52 this.supplier = supplier; 93 Optional<T> item = Objects.requireNonNull(supplier.get());
|
/openjdk10/jdk/test/java/net/ServerSocket/ |
H A D | AcceptInheritHandle.java | 57 final Supplier<ServerSocket> supplier; field in class:AcceptInheritHandle.ServerSocketProducer 58 ServerSocketProducer(Supplier<ServerSocket> supplier) { argument 59 this.supplier = supplier; 61 Supplier<ServerSocket> supplier () { return supplier; } method in class:AcceptInheritHandle.ServerSocketProducer 130 try (ServerSocket ss = producer.supplier().get()) {
|
/openjdk10/jdk/test/java/util/PriorityQueue/ |
H A D | AddNonComparable.java | 47 static <E> void test(Queue<E> queue, Supplier<E> supplier, argument 50 try { queue.add(supplier.get()); } 80 static <E> void test(SortedSet<E> set, Supplier<E> supplier, argument 83 try { set.add(supplier.get()); } 114 static <K> void test(SortedMap<K,Boolean> map, Supplier<K> supplier, argument 117 try { map.put(supplier.get(), Boolean.TRUE); }
|
/openjdk10/jdk/src/java.datatransfer/share/classes/sun/datatransfer/ |
H A D | DesktopDatatransferService.java | 60 * appropriate table is found - uses a provided supplier to instantiate a 63 * @param supplier a constructor that should be used to create a new 67 FlavorMap getFlavorMap(Supplier<FlavorMap> supplier); argument
|
/openjdk10/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/common/ |
H A D | MinimalFuture.java | 65 public static <U> CompletableFuture<U> supply(ExceptionalSupplier<U> supplier) { argument 68 U value = supplier.get(); 76 public static <U> CompletableFuture<U> supply(ExceptionalSupplier<U> supplier, Executor executor) { argument 80 return supplier.get();
|
/openjdk10/jdk/test/java/util/Collections/ |
H A D | CheckedSetBash.java | 47 public static void testCheckedSet(String description, Supplier<Set<Integer>> supplier) { argument 49 Set<Integer> s1 = supplier.get(); 54 Set<Integer> s2 = supplier.get(); 60 Set<Integer> intersection = clone(s1, supplier); 62 Set<Integer> diff1 = clone(s1, supplier); diff1.removeAll(s2); 63 Set<Integer> diff2 = clone(s2, supplier); diff2.removeAll(s1); 64 Set<Integer> union = clone(s1, supplier); union.addAll(s2); 111 static <T> Set<T> clone(Set<T> s, Supplier<Set<T>> supplier) { argument 112 Set<T> clone = supplier.get();
|
/openjdk10/langtools/test/tools/javac/lambda/ |
H A D | TargetType59.java | 37 <T, R> Collector<T, String, R> m(Supplier<? extends R> supplier, BiConsumer<R, T> accumulator) { argument
|
/openjdk10/jdk/test/java/util/List/ |
H A D | ListDefaults.java | 158 final CollectionSupplier<List<Integer>> supplier = new CollectionSupplier(LIST_SUPPLIERS, SIZE); 159 for (final CollectionSupplier.TestCase<List<Integer>> test : supplier.get()) { 195 final CollectionSupplier<List<Integer>> supplier = new CollectionSupplier(LIST_STRUCT_MOD_SUPPLIERS, SIZE); 196 for (final CollectionSupplier.TestCase<List<Integer>> test : supplier.get()) { 212 for (final CollectionSupplier.TestCase<List<Integer>> test : supplier.get()) { 228 for (final CollectionSupplier.TestCase<List<Integer>> test : supplier.get()) { 254 for (final CollectionSupplier.TestCase<List<Integer>> test : supplier.get()) { 284 final CollectionSupplier<List<Integer>> supplier = new CollectionSupplier(LIST_SUPPLIERS, SIZE); 285 for (final CollectionSupplier.TestCase<List<Integer>> test : supplier.get()) { 321 for (final CollectionSupplier.TestCase<List<Integer>> test : supplier [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/util/ |
H A D | OptionalLong.java | 217 * @param supplier the supplying function that produces a value to be returned 223 public long orElseGet(LongSupplier supplier) { argument 224 return isPresent ? value : supplier.getAsLong(); 233 * list can be used as the supplier. For example,
|
H A D | OptionalInt.java | 217 * @param supplier the supplying function that produces a value to be returned 223 public int orElseGet(IntSupplier supplier) { argument 224 return isPresent ? value : supplier.getAsInt(); 233 * list can be used as the supplier. For example,
|
H A D | Optional.java | 295 * @param supplier the supplying function that produces an {@code Optional} 304 public Optional<T> or(Supplier<? extends Optional<? extends T>> supplier) { argument 305 Objects.requireNonNull(supplier); 310 Optional<T> r = (Optional<T>) supplier.get(); 354 * @param supplier the supplying function that produces a value to be returned 360 public T orElseGet(Supplier<? extends T> supplier) { argument 361 return value != null ? value : supplier.get(); 370 * list can be used as the supplier. For example,
|
/openjdk10/jdk/test/java/util/Collection/ |
H A D | RemoveMicroBenchmark.java | 333 Supplier<Collection<Integer>> supplier, 338 Collection<Integer> x = supplier.get(); 348 Collection<Integer> x = supplier.get(); 361 Collection<Integer> x = supplier.get(); 371 Collection<Integer> x = supplier.get(); 381 Collection<Integer> x = supplier.get(); 395 Collection<Integer> x = supplier.get(); 416 Collection<Integer> x = supplier.get(); 428 Supplier<Queue<Integer>> supplier, 433 Queue<Integer> x = supplier 331 collectionJobs( String description, Supplier<Collection<Integer>> supplier, ArrayList<Integer> al) argument 426 queueJobs( String description, Supplier<Queue<Integer>> supplier, ArrayList<Integer> al) argument 443 dequeJobs( String description, Supplier<Deque<Integer>> supplier, ArrayList<Integer> al) argument 483 blockingQueueJobs( String description, Supplier<BlockingQueue<Integer>> supplier, ArrayList<Integer> al) argument 514 blockingDequeJobs( String description, Supplier<BlockingDeque<Integer>> supplier, ArrayList<Integer> al) argument [all...] |
/openjdk10/jdk/test/java/lang/System/LoggerFinder/BaseLoggerFinderTest/ |
H A D | TestLoggerFinder.java | 61 Supplier<String> supplier; field in class:TestLoggerFinder.LogEvent 73 supplier, 107 evt.supplier = null; 122 evt.supplier = null; 130 String key, Supplier<String> supplier, 138 evt.supplier = supplier; 127 of(long sequenceNumber, boolean isLoggable, String name, Logger.Level level, ResourceBundle bundle, String key, Supplier<String> supplier, Throwable thrown, Object... params) argument
|