- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for findLast (0.18 sec)
-
guava-tests/test/com/google/common/collect/StreamsTest.java
} public void testFindLast_refStream() { assertThat(findLast(Stream.of())).isEmpty(); assertThat(findLast(Stream.of("a", "b", "c", "d"))).hasValue("d"); // test with a large, not-subsized Spliterator List<Integer> list = IntStream.rangeClosed(0, 10000).boxed().collect(Collectors.toCollection(LinkedList::new)); assertThat(findLast(list.stream())).hasValue(10000);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 20K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java
throw new SkipThisScenarioException(); } } }, STREAMS_FIND_LAST { @Override Object operate(Stream<?> stream) { return Streams.findLast(stream); } }, REDUCE_LAST { @Override Object operate(Stream<?> stream) { return stream.reduce((a, b) -> b); } }, REDUCE_LAST_PARALLEL { @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 03 19:39:41 GMT 2016 - 2.8K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt
*/ fun findLast(fir: FirElement): CFGNode<*>? { val directNodes = mapping[fir] if (directNodes != null) { return directNodes.last() } if (fir is FirBlock) { return fir.statements .asReversed() .firstNotNullOfOrNull(::findLast) } return null }
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Tue Apr 16 06:40:43 GMT 2024 - 22.9K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/bucket-extensions.kt
var restCapacity = expectedBucketSize - toIntFunction(largestElement) while (restCapacity > 0 && list.isNotEmpty() && buckets.size < maxNumberInBucket) { val smallestElement = list.findLast { searched -> buckets.all { canRunTogether(it, searched) } } ?: break list.remove(smallestElement) buckets.add(smallestElement) restCapacity -= toIntFunction(smallestElement) }
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Thu Nov 17 05:17:44 GMT 2022 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* RandomAccess} support, then this operation is guaranteed to be {@code O(1)}. * * <p><b>{@code Stream} equivalent:</b> {@link Streams#findLast Streams.findLast(stream).get()} * * @return the last element of {@code iterable} * @throws NoSuchElementException if the iterable is empty */ @ParametricNullness
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 24 19:38:27 GMT 2024 - 42.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* RandomAccess} support, then this operation is guaranteed to be {@code O(1)}. * * <p><b>{@code Stream} equivalent:</b> {@link Streams#findLast Streams.findLast(stream).get()} * * @return the last element of {@code iterable} * @throws NoSuchElementException if the iterable is empty */ @ParametricNullness
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 42.5K bytes - Viewed (0) -
okhttp-android/src/main/baseline-prof.txt
HSPLkotlinx/coroutines/scheduling/CoroutineScheduler$Worker;-><init>(Lkotlinx/coroutines/scheduling/CoroutineScheduler;I)V HSPLkotlinx/coroutines/scheduling/CoroutineScheduler$Worker;->findTask(Z)Lkotlinx/coroutines/scheduling/Task; HSPLkotlinx/coroutines/scheduling/CoroutineScheduler$Worker;->getIndexInArray()I HSPLkotlinx/coroutines/scheduling/CoroutineScheduler$Worker;->getNextParkedWorker()Ljava/lang/Object;
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Mar 21 11:22:00 GMT 2022 - 127.9K bytes - Viewed (0)