- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 651 for iterators (0.07 sec)
-
android/guava/src/com/google/common/cache/Cache.java
* the map directly affect the cache. * * <p>Iterators from the returned map are at least <i>weakly consistent</i>: they are safe for * concurrent use, but if the cache is modified (including by eviction) after the iterator is * created, it is undefined which of the changes (if any) will be reflected in that iterator. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Aug 07 02:38:22 UTC 2022 - 8.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Optional.java
return new Iterable<T>() { @Override public Iterator<T> iterator() { return new AbstractIterator<T>() { private final Iterator<? extends Optional<? extends T>> iterator = checkNotNull(optionals.iterator()); @Override @CheckForNull protected T computeNext() { while (iterator.hasNext()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 15.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
} @Override Iterator<Entry<E>> entryIterator() { // AbstractIterator makes this fairly clean, but it doesn't support remove(). To support // remove(), we create an AbstractIterator, and then use ForwardingIterator to delegate to it. Iterator<Entry<E>> readOnlyIterator = new AbstractIterator<Entry<E>>() { private final Iterator<Map.Entry<E, AtomicInteger>> mapEntries =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 21.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
Iterator<String> iterator = skip(list, 2).iterator(); assertThrows(IllegalStateException.class, () -> iterator.remove()); } public void testSkip_allOfImmutableList_modifiable() { List<String> list = ImmutableList.of("a", "b"); Iterator<String> iterator = skip(list, 2).iterator(); assertThrows(UnsupportedOperationException.class, () -> iterator.remove()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 19:12:33 UTC 2024 - 45K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashSet.java
return indexBeforeRemove - 1; } @Override public Iterator<E> iterator() { Set<E> delegate = delegateOrNull(); if (delegate != null) { return delegate.iterator(); } return new Iterator<E>() { int expectedMetadata = metadata; int currentIndex = firstEntryIndex(); int indexToRemove = -1;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 24K bytes - Viewed (0) -
guava/src/com/google/common/collect/LinkedHashMultimap.java
lastEntry = entry; } @Override public void setSuccessorInValueSet(ValueSetLink<K, V> entry) { firstEntry = entry; } @Override public Iterator<V> iterator() { return new Iterator<V>() { ValueSetLink<K, V> nextEntry = firstEntry; @CheckForNull ValueEntry<K, V> toRemove; int expectedModCount = modCount; private void checkForComodification() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 24.3K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
iterator.remove(); } } /** ValueIterator build on top of EntryIterator. */ final class ValueIterator implements Iterator<V> { private EntryIterator iterator; ValueIterator() { iterator = new EntryIterator(); } @Override public boolean hasNext() { return iterator.hasNext(); } @Override public V next() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 27 19:19:19 UTC 2024 - 21.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Queues.java
* of the deque's iterators: * * <pre>{@code * Deque<E> deque = Queues.synchronizedDeque(Queues.<E>newArrayDeque()); * ... * deque.add(element); // Needn't be in synchronized block * ... * synchronized (deque) { // Must synchronize on deque! * Iterator<E> i = deque.iterator(); // Must be in synchronized block * while (i.hasNext()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 14:11:14 UTC 2024 - 18.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
/** @since 12.0 */ @GwtIncompatible // NavigableSet @Override @CheckForNull public E lower(E e) { return Iterators.<@Nullable E>getNext(headSet(e, false).descendingIterator(), null); } /** @since 12.0 */ @Override @CheckForNull public E floor(E e) { return Iterators.<@Nullable E>getNext(headSet(e, true).descendingIterator(), null); } /** @since 12.0 */ @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Queues.java
* of the deque's iterators: * * <pre>{@code * Deque<E> deque = Queues.synchronizedDeque(Queues.<E>newArrayDeque()); * ... * deque.add(element); // Needn't be in synchronized block * ... * synchronized (deque) { // Must synchronize on deque! * Iterator<E> i = deque.iterator(); // Must be in synchronized block * while (i.hasNext()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 14:11:14 UTC 2024 - 18.4K bytes - Viewed (0)