- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 651 for iterators (0.21 sec)
-
android/guava/src/com/google/common/collect/FilteredMultimapValues.java
FilteredMultimapValues(FilteredMultimap<K, V> multimap) { this.multimap = checkNotNull(multimap); } @Override public Iterator<V> iterator() { return Maps.valueIterator(multimap.entries().iterator()); } @Override public boolean contains(@CheckForNull Object o) { return multimap.containsValue(o); } @Override public int size() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3K bytes - Viewed (0) -
guava/src/com/google/common/graph/EndpointPairIterator.java
abstract class EndpointPairIterator<N> extends AbstractIterator<EndpointPair<N>> { private final BaseGraph<N> graph; private final Iterator<N> nodeIterator; @CheckForNull N node = null; // null is safe as an initial value because graphs don't allow null nodes Iterator<N> successorIterator = ImmutableSet.<N>of().iterator(); static <N> EndpointPairIterator<N> of(BaseGraph<N> graph) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 09 17:31:04 UTC 2021 - 5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
} catch (IllegalArgumentException e) { return emptySet(comparator()); } } @CheckForNull E higher(E e) { checkNotNull(e); Iterator<E> iterator = tailSet(e).iterator(); while (iterator.hasNext()) { E higher = iterator.next(); if (comparator().compare(e, higher) < 0) { return higher; } } return null; } @CheckForNull
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Aug 19 16:21:24 UTC 2024 - 15.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 19.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
assertThat(multimap.keySet()).containsExactly("foo", "bar", "cow").inOrder(); assertThat(multimap.values()).containsExactly(5, 4, 3, 2, 1).inOrder(); Iterator<Entry<String, Integer>> entryIterator = multimap.entries().iterator(); assertEquals(immutableEntry("foo", 5), entryIterator.next()); assertEquals(immutableEntry("bar", 4), entryIterator.next());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
int dummy = 0; for (int i = 0; i < reps; i++) { StringBuilder sb = new StringBuilder(); Iterator<String> iterator = components.iterator(); if (iterator.hasNext()) { sb.append(iterator.next().toString()); while (iterator.hasNext()) { sb.append(DELIMITER_STRING); sb.append(iterator.next()); } } dummy ^= sb.toString().length(); } return dummy; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/AbstractIteratorTest.java
Iterator<Integer> iter = new AbstractIterator<Integer>() { @Override public Integer computeNext() { endOfData(); throw new SomeUncheckedException(); } }; assertThrows(SomeUncheckedException.class, iter::hasNext); } public void testCantRemove() { Iterator<Integer> iter =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 5.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/LruHashMapTest.java
assertThat(lru.get("aaa"), is("111")); Iterator<String> i = lru.keySet().iterator(); assertThat(i.next(), is("bbb")); assertThat(i.next(), is("ccc")); assertThat(i.next(), is("aaa")); lru.put("ddd", "444"); assertThat(lru.size(), is(3)); assertThat(lru.get("bbb"), is(nullValue())); i = lru.keySet().iterator(); assertThat(i.next(), is("ccc"));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* @return an iterator over the elements in this queue in proper sequence */ @CanIgnoreReturnValue @Override public Iterator<E> iterator() { final Monitor monitor = this.monitor; monitor.enter(); try { return new Itr(); } finally { monitor.leave(); } } /** Iterator for MonitorBasedArrayBlockingQueue */ private class Itr implements Iterator<E> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 22.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java
@CollectionSize.Require(SEVERAL) public void testClearConcurrentWithIteration() { assertThrows( ConcurrentModificationException.class, () -> { Iterator<E> iterator = collection.iterator(); collection.clear(); iterator.next(); }); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.1K bytes - Viewed (0)