/libcore/ojluni/src/main/java/java/util/stream/ |
D | Stream.java | 154 public interface Stream<T> extends BaseStream<T, Stream<T>> { 169 Stream<T> filter(Predicate<? super T> predicate); in filter() 184 <R> Stream<R> map(Function<? super T, ? extends R> mapper); in map() argument 198 IntStream mapToInt(ToIntFunction<? super T> mapper); in mapToInt() 212 LongStream mapToLong(ToLongFunction<? super T> mapper); in mapToLong() 226 DoubleStream mapToDouble(ToDoubleFunction<? super T> mapper); in mapToDouble() 270 <R> Stream<R> flatMap(Function<? super T, ? extends Stream<? extends R>> mapper); in flatMap() argument 290 IntStream flatMapToInt(Function<? super T, ? extends IntStream> mapper); in flatMapToInt() argument 310 LongStream flatMapToLong(Function<? super T, ? extends LongStream> mapper); in flatMapToLong() argument 330 DoubleStream flatMapToDouble(Function<? super T, ? extends DoubleStream> mapper); in flatMapToDouble() argument [all …]
|
D | Collectors.java | 132 private static <T> BinaryOperator<T> throwingMerger() { in throwingMerger() 147 static class CollectorImpl<T, A, R> implements Collector<T, A, R> { 149 private final BiConsumer<A, T> accumulator; 155 BiConsumer<A, T> accumulator, in CollectorImpl() 167 BiConsumer<A, T> accumulator, in CollectorImpl() 174 public BiConsumer<A, T> accumulator() { in accumulator() 211 public static <T, C extends Collection<T>> 212 Collector<T, ?, C> toCollection(Supplier<C> collectionFactory) { in toCollection() 213 return new CollectorImpl<>(collectionFactory, Collection<T>::add, in toCollection() 228 public static <T> [all …]
|
D | DistinctOps.java | 54 static <T> ReferencePipeline<T, T> makeRef(AbstractPipeline<?, T, ?> upstream) { in makeRef() argument 55 return new ReferencePipeline.StatefulOp<T, T>(upstream, StreamShape.REFERENCE, in makeRef() 58 <P_IN> Node<T> reduce(PipelineHelper<T> helper, Spliterator<P_IN> spliterator) { in makeRef() 61 TerminalOp<T, LinkedHashSet<T>> reduceOp in makeRef() 62 … = ReduceOps.<T, LinkedHashSet<T>>makeRef(LinkedHashSet::new, LinkedHashSet::add, in makeRef() 69 public <P_IN> Node<T> opEvaluateParallel(PipelineHelper<T> helper, in makeRef() 71 IntFunction<T[]> generator) { in makeRef() 82 ConcurrentHashMap<T, Boolean> map = new ConcurrentHashMap<>(); in makeRef() 83 TerminalOp<T, Void> forEachOp = ForEachOps.makeRef(t -> { in makeRef() 93 Set<T> keys = map.keySet(); in makeRef() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Comparator.java | 109 public interface Comparator<T> { 150 int compare(T o1, T o2); in compare() 184 default Comparator<T> reversed() { in reversed() 213 default Comparator<T> thenComparing(Comparator<? super T> other) { in thenComparing() 215 return (Comparator<T> & Serializable) (c1, c2) -> { in thenComparing() 238 default <U> Comparator<T> thenComparing( in thenComparing() 239 Function<? super T, ? extends U> keyExtractor, in thenComparing() argument 262 default <U extends Comparable<? super U>> Comparator<T> thenComparing( in thenComparing() 263 Function<? super T, ? extends U> keyExtractor) in thenComparing() argument 283 default Comparator<T> thenComparingInt(ToIntFunction<? super T> keyExtractor) { in thenComparingInt() [all …]
|
D | Optional.java | 46 public final class Optional<T> { 55 private final T value; 79 public static<T> Optional<T> empty() { in empty() 81 Optional<T> t = (Optional<T>) EMPTY; in empty() 91 private Optional(T value) { in Optional() 103 public static <T> Optional<T> of(T value) { in of() 116 public static <T> Optional<T> ofNullable(T value) { in ofNullable() 129 public T get() { in get() 153 public void ifPresent(Consumer<? super T> consumer) { in ifPresent() 169 public Optional<T> filter(Predicate<? super T> predicate) { in filter() [all …]
|
D | Objects.java | 199 public static <T> int compare(T a, T b, Comparator<? super T> c) { in compare() 218 public static <T> T requireNonNull(T obj) { in requireNonNull() 243 public static <T> T requireNonNull(T obj, String message) { in requireNonNull() 299 public static <T> T requireNonNullElse(T obj, T defaultObj) { in requireNonNullElse() 318 public static <T> T requireNonNullElseGet(T obj, Supplier<? extends T> supplier) { in requireNonNullElseGet() 343 public static <T> T requireNonNull(T obj, Supplier<String> messageSupplier) { in requireNonNull()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorTester.java | 43 public static <T> void runBasicIterationTests(Spliterator<T> spliterator, in runBasicIterationTests() 44 List<T> expectedElements) { in runBasicIterationTests() 45 List<T> recorder = new ArrayList<T>(expectedElements.size()); in runBasicIterationTests() 46 Consumer<T> consumer = (T value) -> recorder.add(value); in runBasicIterationTests() 58 spliterator.forEachRemaining((T) -> fail()); in runBasicIterationTests() 61 public static <T> void runBasicIterationTests_unordered(Spliterator<T> spliterator, in runBasicIterationTests_unordered() 62 List<T> expectedElements, Comparator<T> comparator) { in runBasicIterationTests_unordered() 63 ArrayList<T> recorder = new ArrayList<T>(expectedElements.size()); in runBasicIterationTests_unordered() 64 Consumer<T> consumer = (T value) -> recorder.add(value); in runBasicIterationTests_unordered() 82 spliterator.forEachRemaining((T) -> fail()); in runBasicIterationTests_unordered() [all …]
|
D | ForEachRemainingTester.java | 36 public static <T> void runTests(Supplier<? extends Collection<T>> collectionSupplier, in runTests() 37 T[] initialData) throws Exception { in runTests() 42 Collection<T> collection = collectionSupplier.get(); in runTests() 44 List<T> asList = (List<T>) collection; in runTests() 51 public static <T> void test_forEachRemaining_list(List<T> collection, T[] initialData) in test_forEachRemaining_list() 55 ArrayList<T> recorder = new ArrayList<>(); in test_forEachRemaining_list() 56 ListIterator<T> lit = collection.listIterator(1); in test_forEachRemaining_list() 58 lit.forEachRemaining((T i) -> recorder.add(i)); in test_forEachRemaining_list() 67 public static <T> void test_forEachRemaining(Collection<T> collection, T[] initialData) in test_forEachRemaining() 71 ArrayList<T> recorder = new ArrayList<>(); in test_forEachRemaining() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | AbstractExecutorService.java | 92 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() 93 return new FutureTask<T>(runnable, value); in newTaskFor() 107 protected <T> RunnableFuture<T> newTaskFor(Callable<T> callable) { in newTaskFor() 108 return new FutureTask<T>(callable); in newTaskFor() 126 public <T> Future<T> submit(Runnable task, T result) { in submit() 128 RunnableFuture<T> ftask = newTaskFor(task, result); in submit() 137 public <T> Future<T> submit(Callable<T> task) { in submit() 139 RunnableFuture<T> ftask = newTaskFor(task); in submit() 147 private <T> T doInvokeAny(Collection<? extends Callable<T>> tasks, in doInvokeAny() 155 ArrayList<Future<T>> futures = new ArrayList<>(ntasks); in doInvokeAny() [all …]
|
D | CompletionStage.java | 151 public interface CompletionStage<T> { 170 public <U> CompletionStage<U> thenApply(Function<? super T,? extends U> fn); in thenApply() argument 187 (Function<? super T,? extends U> fn); in thenApplyAsync() argument 204 (Function<? super T,? extends U> fn, in thenApplyAsync() argument 219 public CompletionStage<Void> thenAccept(Consumer<? super T> action); in thenAccept() 234 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action); in thenAcceptAsync() 249 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action, in thenAcceptAsync() 310 BiFunction<? super T,? super U,? extends V> fn); in thenCombine() argument 330 BiFunction<? super T,? super U,? extends V> fn); in thenCombineAsync() argument 351 BiFunction<? super T,? super U,? extends V> fn, in thenCombineAsync() argument [all …]
|
D | ExecutorService.java | 226 <T> Future<T> submit(Callable<T> task); in submit() 241 <T> Future<T> submit(Runnable task, T result); in submit() 277 <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll() 308 <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, in invokeAll() 331 <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny() 357 <T> T invokeAny(Collection<? extends Callable<T>> tasks, in invokeAny()
|
D | Executors.java | 381 public static <T> Callable<T> callable(Runnable task, T result) { in callable() 384 return new RunnableAdapter<T>(task, result); in callable() 433 public static <T> Callable<T> privilegedCallable(Callable<T> callable) { 436 return new PrivilegedCallable<T>(callable); 443 public static <T> Callable<T> privilegedCallableUsingCurrentClassLoader(Callable<T> callable) { 446 return new PrivilegedCallableUsingCurrentClassLoader<T>(callable); 454 private static final class RunnableAdapter<T> implements Callable<T> { 456 private final T result; 457 RunnableAdapter(Runnable task, T result) { 461 public T call() { [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | AccessController.java | 42 public static <T> T doPrivileged(PrivilegedAction<T> action) { in doPrivileged() 49 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { in doPrivilegedWithCombiner() 57 public static <T> T doPrivileged(PrivilegedAction<T> action, in doPrivileged() 65 public static <T> T 66 doPrivileged(PrivilegedExceptionAction<T> action) in doPrivileged() 81 public static <T> T doPrivilegedWithCombiner in doPrivilegedWithCombiner() 82 (PrivilegedExceptionAction<T> action) throws PrivilegedActionException { in doPrivilegedWithCombiner() 90 public static <T> T 91 doPrivileged(PrivilegedExceptionAction<T> action, in doPrivileged()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | IntStreamTestScenario.java | 50 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_FOR_EACH_WITH_CLOSE() 51 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument 62 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_TO_ARRAY() 63 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_TO_ARRAY() argument 71 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_ITERATOR() 72 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_ITERATOR() argument 80 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR() 81 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR() argument 89 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 90 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument [all …]
|
D | DoubleStreamTestScenario.java | 51 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_FOR_EACH_WITH_CLOSE() 52 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument 63 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_TO_ARRAY() 64 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_TO_ARRAY() argument 72 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_ITERATOR() 73 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_ITERATOR() argument 81 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR() 82 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR() argument 90 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 91 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument [all …]
|
D | LongStreamTestScenario.java | 50 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_FOR_EACH_WITH_CLOSE() 51 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument 62 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_TO_ARRAY() 63 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_TO_ARRAY() argument 71 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_ITERATOR() 72 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_ITERATOR() argument 80 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR() 81 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR() argument 89 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 90 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument [all …]
|
D | StreamTestScenario.java | 49 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_FOR_EACH_WITH_CLOSE() 50 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument 62 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_COLLECT() 63 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_COLLECT() argument 72 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_TO_ARRAY() 73 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_TO_ARRAY() argument 82 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_ITERATOR() 83 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_ITERATOR() argument 91 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR() 92 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR() argument [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | IntStreamTestScenario.java | 47 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_FOR_EACH_WITH_CLOSE() 48 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument 59 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_TO_ARRAY() 60 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_TO_ARRAY() argument 68 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_ITERATOR() 69 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_ITERATOR() argument 77 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR() 78 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR() argument 86 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 87 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument [all …]
|
D | DoubleStreamTestScenario.java | 47 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_FOR_EACH_WITH_CLOSE() 48 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument 59 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_TO_ARRAY() 60 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_TO_ARRAY() argument 68 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_ITERATOR() 69 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_ITERATOR() argument 77 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR() 78 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR() argument 86 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 87 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument [all …]
|
D | LongStreamTestScenario.java | 47 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_FOR_EACH_WITH_CLOSE() 48 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument 59 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_TO_ARRAY() 60 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_TO_ARRAY() argument 68 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_ITERATOR() 69 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_ITERATOR() argument 77 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR() 78 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR() argument 86 <T, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 87 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument [all …]
|
D | StreamTestScenario.java | 46 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_FOR_EACH_WITH_CLOSE() 47 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument 59 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_COLLECT() 60 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_COLLECT() argument 69 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_TO_ARRAY() 70 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_TO_ARRAY() argument 79 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_ITERATOR() 80 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_ITERATOR() argument 88 <T, U, S_IN extends BaseStream<T, S_IN>> in STREAM_SPLITERATOR() 89 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR() argument [all …]
|
D | LambdaTestHelpers.java | 127 …public static <T, R> Function<T, R> forPredicate(Predicate<? super T> predicate, R forTrue, R forF… in forPredicate() 133 public static <T> Function<T, T> identity() { in identity() 137 …public static<V, T, R> Function<V, R> compose(Function<? super T, ? extends R> after, Function<? s… in compose() argument 214 public static<T extends Comparable<? super T>> void assertSorted(Iterator<T> i) { in assertSorted() 219 T last = i.next(); in assertSorted() 221 T t = i.next(); in assertSorted() 228 public static<T> void assertSorted(Iterator<T> i, Comparator<? super T> comp) { in assertSorted() 237 T last = i.next(); in assertSorted() 239 T t = i.next(); in assertSorted() 246 public static<T extends Comparable<? super T>> void assertSorted(Iterable<T> iter) { in assertSorted() [all …]
|
/libcore/luni/src/test/native/ |
D | libcore_io_Memory_test.cpp | 27 template<typename T, size_t NUM_ELEMENTS> 28 void swap_align_test(void (*swap_func)(T*, const T*, size_t), in swap_align_test() argument 29 std::function<void (T*, T*, uint64_t)> init_func) { in swap_align_test() argument 33 sizeof(T) * NUM_ELEMENTS + ALIGNMENT)); in swap_align_test() 35 sizeof(T) * NUM_ELEMENTS + ALIGNMENT)); in swap_align_test() 37 T src_buf[NUM_ELEMENTS]; in swap_align_test() 38 T dst_buf[NUM_ELEMENTS]; in swap_align_test() 45 T* dst_aligned = reinterpret_cast<T*>(&dst[dst_align]); in swap_align_test() 47 T* src_aligned = reinterpret_cast<T*>(&src[src_align]); in swap_align_test() 48 memset(dst_aligned, 0, sizeof(T) * NUM_ELEMENTS); in swap_align_test() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicLongFieldUpdater.java | 66 public abstract class AtomicLongFieldUpdater<T> { 113 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() 133 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() 143 public abstract void set(T obj, long newValue); in set() 153 public abstract void lazySet(T obj, long newValue); in lazySet() 162 public abstract long get(T obj); in get() 172 public long getAndSet(T obj, long newValue) { in getAndSet() 187 public long getAndIncrement(T obj) { in getAndIncrement() 203 public long getAndDecrement(T obj) { in getAndDecrement() 220 public long getAndAdd(T obj, long delta) { in getAndAdd() [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Collections.annotated.java | 38 public static <T extends java.lang.Comparable<? super T>> void sort(@libcore.util.NonNull java.util… in sort() 40 …T> void sort(@libcore.util.NonNull java.util.List<@libcore.util.NullFromTypeParam T> list, @libcor… in sort() 42 …<T> int binarySearch(@libcore.util.NonNull java.util.List<? extends @libcore.util.NonNull java.lan… in binarySearch() 44 …T> int binarySearch(@libcore.util.NonNull java.util.List<? extends @libcore.util.NullFromTypeParam… in binarySearch() 54 …c static <T> void fill(@libcore.util.NonNull java.util.List<? super @libcore.util.NullFromTypePara… in fill() 56 …T> void copy(@libcore.util.NonNull java.util.List<? super @libcore.util.NullFromTypeParam T> dest,… in copy() 58 …ic <T extends java.lang.Object & java.lang.Comparable<? super T>> T min(@libcore.util.NonNull java… in min() 60 …T> T min(@libcore.util.NonNull java.util.Collection<? extends @libcore.util.NullFromTypeParam T> c… in min() 62 …ic <T extends java.lang.Object & java.lang.Comparable<? super T>> T max(@libcore.util.NonNull java… in max() 64 …T> T max(@libcore.util.NonNull java.util.Collection<? extends @libcore.util.NullFromTypeParam T> c… in max() [all …]
|