- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 1,258 for operator (0.08 sec)
-
guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
assertThrows(NoSuchElementException.class, () -> iterator.next()); assertThrows(IllegalStateException.class, () -> iterable.iterator()); } public void testOf_one() { Iterable<String> iterable = MinimalIterable.of("a"); Iterator<String> iterator = iterable.iterator(); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); assertFalse(iterator.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
assertNextThrows(iterator); /* Checks the case where a later element throws an exception. */ list = Lists.newArrayList(1, 2); iterator = peekingIterator(new ThrowsAtEndIterator<Integer>(list)); assertTrue(iterator.hasNext()); iterator.next(); assertTrue(iterator.hasNext()); iterator.next(); assertNextThrows(iterator); } private void assertNextThrows(Iterator<?> iterator) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
import java.io.ObjectInputStream; import java.io.Serializable; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; import java.util.function.Function; import java.util.function.ToIntFunction; import java.util.stream.Collector; import javax.annotation.CheckForNull;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 35.4K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
*/ static class IteratorWithSunJavaBug6529795<T> implements Iterator<T> { Iterator<T> iterator; boolean nextThrewException; IteratorWithSunJavaBug6529795(Iterator<T> iterator) { this.iterator = iterator; } @Override public boolean hasNext() { return iterator.hasNext(); } @Override public T next() { try {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
* * @param wildcard * @return an iterator over the child resources * @throws CIFSException */ CloseableIterator<SmbResource> children ( String wildcard ) throws CIFSException; /** * @param filter * filter acting on file names * @return an iterator over the child resources
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Dec 20 14:09:34 UTC 2020 - 26K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
assertEquals("b", iterator.previous()); assertThrows(UnsupportedOperationException.class, () -> iterator.add("c")); } @SuppressWarnings("DoNotCall") public void testSet() { ListIterator<String> iterator = create(); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); assertEquals("b", iterator.next()); assertEquals("b", iterator.previous());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
@Override public @Nullable Object execute(Iterator<?> iterator) { iterator.remove(); return null; } }; private static final IteratorOperation NEXT_METHOD = new IteratorOperation() { @Override public @Nullable Object execute(Iterator<?> iterator) { return iterator.next(); } };
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 20.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java
} catch (UnsupportedOperationException e) { return; } if (map.size() < 2 || !supportsPut) { return; } Iterator<Entry<K, V>> iterator = map.entrySet().iterator(); Entry<K, V> firstEntry = iterator.next(); Entry<K, V> secondEntry = iterator.next(); K key = secondEntry.getKey(); SortedMap<K, V> subMap = map.tailMap(key); V value = getValueNotInPopulatedMap();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/MapMakerInternalMap.java
* changing any bin. The operations must not take any action that could even momentarily * cause a concurrent read operation to see inconsistent data. This is made easier by the * nature of the read operations in Map. For example, no operation can reveal that the table * has grown but the threshold has not yet been updated, so there are no atomicity requirements * for this with respect to reads.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 90.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
return (MinimalIterable) of(elements.toArray()); } private @Nullable Iterator<E> iterator; private MinimalIterable(Iterator<E> iterator) { this.iterator = iterator; } @Override public Iterator<E> iterator() { if (iterator == null) { // TODO: throw something else? Do we worry that people's code and tests
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 3.2K bytes - Viewed (0)