- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 845 for Iterator (0.06 seconds)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/EnumMultiset.java
} public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) { Iterator<E> iterator = elements.iterator(); checkArgument(iterator.hasNext(), "EnumMultiset constructor passed empty Iterable"); EnumMap<E, Count> map = new EnumMap<>(getDeclaringClassOrObjectForJ2cl(iterator.next())); EnumMultiset<E> multiset = new EnumMultiset<>(map); Iterables.addAll(multiset, elements);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java
return delegateList().equals(obj); } @Override public int hashCode() { return delegateList().hashCode(); } @Override public UnmodifiableIterator<E> iterator() { return Iterators.unmodifiableIterator(delegateList().iterator()); } @Override public boolean contains(@Nullable Object object) { return object != null && delegateList().contains(object); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 2.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
} } } /** * Returns an iterator over the elements contained in this collection, <i>in no particular * order</i>. * * <p>The iterator is <i>fail-fast</i>: If the MinMaxPriorityQueue is modified at any time after * the iterator is created, in any way except through the iterator's own remove method, the * iterator will generally throw a {@link ConcurrentModificationException}. Thus, in the face ofCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
guava/src/com/google/common/base/Joiner.java
return appendTo(appendable, parts.iterator()); } /** * Appends the string representation of each of {@code parts}, using the previously configured * separator between each, to {@code appendable}. * * @since 11.0 */ @CanIgnoreReturnValue public <A extends Appendable> A appendTo(A appendable, Iterator<?> parts) throws IOException { checkNotNull(appendable);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 15:16:19 GMT 2025 - 21K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/LineIterator.java
import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.io.BufferedReader; import java.io.Reader; import java.util.Iterator; import java.util.NoSuchElementException; import org.codelibs.core.exception.ClUnsupportedOperationException; /** * An {@link Iterator} that iterates over lines read from a {@link BufferedReader}. * <p> * Usage example: * </p> * * <pre>Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 3.6K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
AssertionFailedError.class, () -> assertEmpty( new Iterable<String>() { @Override public Iterator<String> iterator() { return singleton("a").iterator(); } })); } public void testIsEmpty_map() { Map<Object, Object> map = new HashMap<>(); assertEmpty(map);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 09 19:16:24 GMT 2026 - 4.4K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
AssertionFailedError.class, () -> assertEmpty( new Iterable<String>() { @Override public Iterator<String> iterator() { return singleton("a").iterator(); } })); } public void testIsEmpty_map() { Map<Object, Object> map = new HashMap<>(); assertEmpty(map);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 09 19:16:24 GMT 2026 - 4.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/CompactHashMap.java
return (delegate != null) ? delegate.keySet().remove(o) : CompactHashMap.this.removeHelper(o) != NOT_FOUND; } @Override public Iterator<K> iterator() { return keySetIterator(); } @Override public Spliterator<K> spliterator() { if (needsAllocArrays()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 39.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/PeekingIterator.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import com.google.errorprone.annotations.DoNotMock; import java.util.Iterator; import java.util.NoSuchElementException; import org.jspecify.annotations.Nullable; /** * An iterator that supports a one-element lookahead while iterating. * * <p>See the Guava User Guide article on <a href=
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.4K bytes - Click Count (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(); }); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0)