- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for exhaust (0.05 sec)
-
android/guava/src/com/google/common/collect/Iterators.java
UnmodifiableIterator<T> iterator) { return checkNotNull(iterator); } /** * Returns the number of elements remaining in {@code iterator}. The iterator will be left * exhausted: its {@code hasNext()} method will return {@code false}. */ public static int size(Iterator<?> iterator) { long count = 0L; while (iterator.hasNext()) { iterator.next(); count++; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
assertTrue( "index " + i + " expected <" + expected + "., actual is exhausted", actualIterator.hasNext()); Object actual = actualIterator.next(); assertEquals("index " + i, expected, actual); i++; } if (actualIterator.hasNext()) { fail("index " + i + ", expected is exhausted, actual <" + actualIterator.next() + ">"); } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 14.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
assertTrue( "index " + i + " expected <" + expected + "., actual is exhausted", actualIterator.hasNext()); Object actual = actualIterator.next(); assertEquals("index " + i, expected, actual); i++; } if (actualIterator.hasNext()) { fail("index " + i + ", expected is exhausted, actual <" + actualIterator.next() + ">"); } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 14.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Ordering.java
/** * Returns the least of the specified values according to this ordering. If there are multiple * least values, the first of those is returned. The iterator will be left exhausted: its {@code * hasNext()} method will return {@code false}. * * <p><b>Java 8+ users:</b> Use {@code Streams.stream(iterator).min(thisComparator).get()} instead
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Ordering.java
/** * Returns the least of the specified values according to this ordering. If there are multiple * least values, the first of those is returned. The iterator will be left exhausted: its {@code * hasNext()} method will return {@code false}. * * <p><b>Java 8+ users:</b> Use {@code Streams.stream(iterator).min(thisComparator).get()} instead
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0)