/libcore/ojluni/src/main/java/java/util/ |
D | ServiceLoader.java | 183 public final class ServiceLoader<S> 184 implements Iterable<S> 190 private final Class<S> service; 200 private LinkedHashMap<String,S> providers = new LinkedHashMap<>(); 221 private ServiceLoader(Class<S> svc, ClassLoader cl) { in ServiceLoader() 325 implements Iterator<S> 328 Class<S> service; 334 private LazyIterator(Class<S> service, ClassLoader loader) { in LazyIterator() 364 private S nextService() { in nextService() 388 S p = service.cast(c.newInstance()); in nextService() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | ForEachOps.java | 149 public <S> Void evaluateSequential(PipelineHelper<T> helper, in evaluateSequential() 150 Spliterator<S> spliterator) { in evaluateSequential() 155 public <S> Void evaluateParallel(PipelineHelper<T> helper, in evaluateParallel() 156 Spliterator<S> spliterator) { in evaluateParallel() 254 static final class ForEachTask<S, T> extends CountedCompleter<Void> { 255 private Spliterator<S> spliterator; 256 private final Sink<S> sink; 261 Spliterator<S> spliterator, in ForEachTask() 262 Sink<S> sink) { in ForEachTask() 270 ForEachTask(ForEachTask<S, T> parent, Spliterator<S> spliterator) { in ForEachTask() argument [all …]
|
D | BaseStream.java | 64 public interface BaseStream<T, S extends BaseStream<T, S>> 105 S sequential(); in sequential() 117 S parallel(); in parallel() 130 S unordered(); in unordered() 150 S onClose(Runnable closeHandler); in onClose()
|
D | AbstractPipeline.java | 74 public abstract class AbstractPipeline<E_IN, E_OUT, S extends BaseStream<E_OUT, S>> 75 extends PipelineHelper<E_OUT> implements BaseStream<E_OUT, S> { 306 public final S sequential() { in sequential() 308 return (S) this; in sequential() 313 public final S parallel() { in parallel() 315 return (S) this; in parallel() 332 public S onClose(Runnable closeHandler) { in onClose() 338 return (S) this; in onClose() 474 final <P_IN, S extends Sink<E_OUT>> S wrapAndCopyInto(S sink, Spliterator<P_IN> spliterator) { in wrapAndCopyInto()
|
D | PipelineHelper.java | 110 abstract<P_IN, S extends Sink<P_OUT>> S wrapAndCopyInto(S sink, Spliterator<P_IN> spliterator); in wrapAndCopyInto()
|
D | ReduceOps.java | 684 private static abstract class ReduceOp<T, R, S extends AccumulatingSink<T, R, S>> 698 public abstract S makeSink(); 723 S extends AccumulatingSink<P_OUT, R, S>> 724 extends AbstractTask<P_IN, P_OUT, S, ReduceTask<P_IN, P_OUT, R, S>> { 725 private final ReduceOp<P_OUT, R, S> op; 727 ReduceTask(ReduceOp<P_OUT, R, S> op, 734 ReduceTask(ReduceTask<P_IN, P_OUT, R, S> parent, 741 protected ReduceTask<P_IN, P_OUT, R, S> makeChild(Spliterator<P_IN> spliterator) { 746 protected S doLeaf() { 753 S leftResult = leftChild.getLocalResult();
|
D | MatchOps.java | 228 public <S> Boolean evaluateSequential(PipelineHelper<T> helper, in evaluateSequential() 229 Spliterator<S> spliterator) { in evaluateSequential() 234 public <S> Boolean evaluateParallel(PipelineHelper<T> helper, in evaluateParallel() 235 Spliterator<S> spliterator) { in evaluateParallel()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 149 static <T, S extends Spliterator<T>> void testSpliterator(Supplier<S> supplier, in testSpliterator() 172 private static <T, S extends Spliterator<T>> void testNullPointerException(Supplier<S> s) { in testNullPointerException() 173 S sp = s.get(); in testNullPointerException() 197 private static <T, S extends Spliterator<T>> void testForEach( in testForEach() 199 Supplier<S> supplier, in testForEach() 202 S spliterator = supplier.get(); in testForEach() 227 private static <T, S extends Spliterator<T>> void testTryAdvance( in testTryAdvance() 229 Supplier<S> supplier, in testTryAdvance() 232 S spliterator = supplier.get(); in testTryAdvance() 257 private static <T, S extends Spliterator<T>> void testMixedTryAdvanceForEach( in testMixedTryAdvanceForEach() [all …]
|
D | TestData.java | 40 public interface TestData<T, S extends BaseStream<T, S>> 65 S stream(); in stream() 67 S parallelStream(); in parallelStream() 208 abstract class AbstractTestData<T, S extends BaseStream<T, S>, 211 implements TestData<T, S> { 216 private final Function<T_STATE, S> streamFn; 217 private final Function<T_STATE, S> parStreamFn; 223 Function<T_STATE, S> streamFn, in AbstractTestData() 224 Function<T_STATE, S> parStreamFn, in AbstractTestData() 257 public S stream() { in stream() [all …]
|
D | LambdaTestHelpers.java | 417 public static <T, S extends BaseStream<T, S>> 418 List<Function<S, S>> permuteStreamFunctions(List<Function<S, S>> opFunctions) { 419 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions); 421 List<Function<S, S>> appliedFunctions = new ArrayList<>(); 422 for (List<Function<S, S>> fs : opFunctionPermutations) { 423 Function<S, S> applied = s -> { 424 for (Function<S, S> f : fs) {
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 149 static <T, S extends Spliterator<T>> void testSpliterator(Supplier<S> supplier, in testSpliterator() 172 private static <T, S extends Spliterator<T>> void testNullPointerException(Supplier<S> s) { in testNullPointerException() 173 S sp = s.get(); in testNullPointerException() 197 private static <T, S extends Spliterator<T>> void testForEach( in testForEach() 199 Supplier<S> supplier, in testForEach() 202 S spliterator = supplier.get(); in testForEach() 227 private static <T, S extends Spliterator<T>> void testTryAdvance( in testTryAdvance() 229 Supplier<S> supplier, in testTryAdvance() 232 S spliterator = supplier.get(); in testTryAdvance() 257 private static <T, S extends Spliterator<T>> void testMixedTryAdvanceForEach( in testMixedTryAdvanceForEach() [all …]
|
D | TestData.java | 39 public interface TestData<T, S extends BaseStream<T, S>> 64 S stream(); in stream() 66 S parallelStream(); in parallelStream() 207 abstract class AbstractTestData<T, S extends BaseStream<T, S>, 210 implements TestData<T, S> { 215 private final Function<T_STATE, S> streamFn; 216 private final Function<T_STATE, S> parStreamFn; 222 Function<T_STATE, S> streamFn, in AbstractTestData() 223 Function<T_STATE, S> parStreamFn, in AbstractTestData() 256 public S stream() { in stream() [all …]
|
D | LambdaTestHelpers.java | 416 public static <T, S extends BaseStream<T, S>> 417 List<Function<S, S>> permuteStreamFunctions(List<Function<S, S>> opFunctions) { 418 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions); 420 List<Function<S, S>> appliedFunctions = new ArrayList<>(); 421 for (List<Function<S, S>> fs : opFunctionPermutations) { 422 Function<S, S> applied = s -> { 423 for (Function<S, S> f : fs) {
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | ThreadLocal.annotated.java | 40 …il.NonNull public static <S> java.lang.ThreadLocal<S> withInitial(@libcore.util.NonNull java.util.… in withInitial()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamLinkTest.java | 49 private <S> Function<S, S> apply(int n, Function<S, S> f) { in apply() argument
|
D | SortedOpTest.java | 93 <T, S extends BaseStream<T, S>> void testStreamTooLarge(Function<LongStream, S> s, in testStreamTooLarge() 94 Function<S, ?> terminal) { in testStreamTooLarge() argument 366 …<T, S extends BaseStream<T, S>, R> S assertNCallsOnly(S s, BiFunction<S, Consumer<T>, S> pf, int n… in assertNCallsOnly() argument
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CompletableFuture.java | 594 final <S> boolean uniApply(CompletableFuture<S> a, in uniApply() 595 Function<? super S,? extends T> f, in uniApply() argument 596 UniApply<S,T> c) { in uniApply() argument 611 @SuppressWarnings("unchecked") S s = (S) r; in uniApply() 649 final <S> boolean uniAccept(CompletableFuture<S> a, in uniAccept() 650 Consumer<? super S> f, UniAccept<S> c) { in uniAccept() 665 @SuppressWarnings("unchecked") S s = (S) r; in uniAccept() 816 final <S> boolean uniHandle(CompletableFuture<S> a, in uniHandle() 817 BiFunction<? super S, Throwable, ? extends T> f, in uniHandle() argument 818 UniHandle<S,T> c) { in uniHandle() argument [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FDBigInteger.java | 563 public int quoRemIteration(FDBigInteger S) throws IllegalArgumentException { in quoRemIteration() argument 569 int sSize = S.size(); in quoRemIteration() 586 long q = (this.data[this.nWords - 1] & LONG_MASK) / (S.data[S.nWords - 1] & LONG_MASK); in quoRemIteration() 587 long diff = multDiffMe(q, S); in quoRemIteration() 597 int tStart = S.offset - this.offset; in quoRemIteration() 599 int[] sd = S.data; in quoRemIteration() 1289 private /*@ helper @*/ long multDiffMe(long q, FDBigInteger S) { in multDiffMe() argument 1292 int deltaSize = S.offset - this.offset; in multDiffMe() 1294 int[] sd = S.data; in multDiffMe() 1296 for (int sIndex = 0, tIndex = deltaSize; sIndex < S.nWords; sIndex++, tIndex++) { in multDiffMe() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | ThreadLocal.java | 45 public static <S> java.lang.ThreadLocal<S> withInitial( in withInitial() 46 java.util.function.Supplier<? extends S> supplier) { in withInitial()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldGenericTypesTest.java | 39 static class MultipleBoundedGenericTypes<T,S extends T>{ 40 void multipleBoundedGenericTypesTS(T t, S s){} in multipleBoundedGenericTypesTS() 102 static class MultipleGenericTypes<T,S>{ 104 void multipleGenericTypesS(S s){} in multipleGenericTypesS() 105 void multipleGenericTypesTS(T t, S s){} in multipleGenericTypesTS()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SetOfTest.java | 239 private static <S extends Serializable> S reserialize(S value) { in reserialize() 241 return (S) SerializationTester.reserialize(value); in reserialize()
|
D | ListOfTest.java | 232 private static <S extends Serializable> S reserialize(S value) { in reserialize() 234 return (S) SerializationTester.reserialize(value); in reserialize()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | TypeVariableTest.java | 81 static class D<Q,R,S>{} 103 <Q,R,S> void e(){} in e() 128 <Q,R,S> F(){} in F()
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | StreamReuseTest.java | 39 private <T, U, E, S extends BaseStream<E, S>, D extends TestData<E, S>> void assertSecondFails( in assertSecondFails() 41 Function<S, T> first, in assertSecondFails() argument 42 Function<S, U> second, in assertSecondFails() 45 S stream = data.stream(); in assertSecondFails()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ThreadLocal.java | 140 public static <S> ThreadLocal<S> withInitial(Supplier<? extends S> supplier) { in withInitial()
|