- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 463 for iterables (0.13 sec)
-
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
lastFromForgetMeNot = null; } } /** Returns true if an exact reference (==) was found and removed from the supplied iterable. */ private boolean foundAndRemovedExactReference(Iterable<E> elements, E target) { for (Iterator<E> it = elements.iterator(); it.hasNext(); ) { E element = it.next(); if (element == target) { it.remove();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 34.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java
@Override public <E extends Comparable<?>> E min(Iterator<E> iterator) { return NaturalOrdering.INSTANCE.max(iterator); } @Override public <E extends Comparable<?>> E min(Iterable<E> iterable) { return NaturalOrdering.INSTANCE.max(iterable); } @Override public <E extends Comparable<?>> E max(E a, E b) { return NaturalOrdering.INSTANCE.min(a, b); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 2.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
val commonEmptyRequestBody: RequestBody = EMPTY_BYTE_ARRAY.toRequestBody() val commonEmptyResponse: ResponseBody = EMPTY_BYTE_ARRAY.toResponseBody() internal fun <T> interleave( a: Iterable<T>, b: Iterable<T>, ): List<T> { val ia = a.iterator() val ib = b.iterator() return buildList { while (ia.hasNext() || ib.hasNext()) { if (ia.hasNext()) { add(ia.next()) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 11K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
Iterable<String> iterable = asList("a", "b"); Iterator<String> cycle = Iterators.cycle(iterable); cycle.next(); assertThrows(UnsupportedOperationException.class, () -> cycle.remove()); } public void testCycleRemoveAfterHasNext() { Iterable<String> iterable = Lists.newArrayList("a"); Iterator<String> cycle = Iterators.cycle(iterable); assertTrue(cycle.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
* @since 19.0 */ @CanIgnoreReturnValue @Override public Builder<K, V> putAll(Iterable<? extends Entry<? extends K, ? extends V>> entries) { super.putAll(entries); return this; } @CanIgnoreReturnValue @Override public Builder<K, V> putAll(K key, Iterable<? extends V> values) { super.putAll(key, values); return this; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 25.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/LineIteratorTest.java
/** * @throws Exception */ @Test public void testForEach() throws Exception { final StringReader reader = new StringReader("aaa\nbbb\nccc\n"); for (final String line : LineIterator.iterable(reader)) { System.out.println(line); } }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LegacyComparable.java
static final LegacyComparable Y = new LegacyComparable("y"); static final LegacyComparable Z = new LegacyComparable("z"); static final Iterable<LegacyComparable> VALUES_FORWARD = asList(X, Y, Z); static final Iterable<LegacyComparable> VALUES_BACKWARD = asList(Z, Y, X); private final String value; LegacyComparable(String value) { this.value = value; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ReverseOrdering.java
} @Override public <E extends T> E min(Iterator<E> iterator) { return forwardOrder.max(iterator); } @Override public <E extends T> E min(Iterable<E> iterable) { return forwardOrder.max(iterable); } @Override public <E extends T> E max(@ParametricNullness E a, @ParametricNullness E b) { return forwardOrder.min(a, b); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 3.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
POST_ORDER { @Override <T> Iterable<T> view(T root, TreeTraverser<T> viewer) { return viewer.postOrderTraversal(root); } }, BREADTH_FIRST { @Override <T> Iterable<T> view(T root, TreeTraverser<T> viewer) { return viewer.breadthFirstTraversal(root); } }; abstract <T> Iterable<T> view(T root, TreeTraverser<T> viewer); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 26 19:18:53 UTC 2019 - 4.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java
protected ListIteratorTester( int steps, Iterable<E> elementsToInsert, Iterable<? extends IteratorFeature> features, Iterable<E> expectedElements, int startIndex) { super(steps, elementsToInsert, features, expectedElements, KnownOrder.KNOWN_ORDER, startIndex); } @Override protected final Iterable<? extends Stimulus<E, ? super ListIterator<E>>> getStimulusValues() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 2.3K bytes - Viewed (0)