- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for itr (0.01 seconds)
-
guava/src/com/google/common/collect/CartesianList.java
} List<?> list = (List<?>) o; if (list.size() != axes.size()) { return -1; } ListIterator<?> itr = list.listIterator(); int computedIndex = 0; while (itr.hasNext()) { int axisIndex = itr.nextIndex(); int elemIndex = axes.get(axisIndex).indexOf(itr.next()); if (elemIndex == -1) { return -1; } computedIndex += elemIndex * axesSizeProduct[axisIndex + 1];Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java
} // test that the RangeSet's span is the span of all the ranges Iterator<Range<C>> itr = rangeSet.asRanges().iterator(); Range<C> expectedSpan = null; if (itr.hasNext()) { expectedSpan = itr.next(); while (itr.hasNext()) { expectedSpan = expectedSpan.span(itr.next()); } } try { Range<C> span = rangeSet.span(); assertEquals(expectedSpan, span);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 2.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
} } @Override final Iterator<E> elementIterator() { return new Itr<E>() { @Override @ParametricNullness E result(int entryIndex) { return backingMap.getKey(entryIndex); } }; } @Override final Iterator<Entry<E>> entryIterator() { return new Itr<Entry<E>>() { @Override Entry<E> result(int entryIndex) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 7.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractBiMap.java
this.delegate.replaceAll(function); inverse.delegate.clear(); Entry<K, V> broken = null; Iterator<Entry<K, V>> itr = this.delegate.entrySet().iterator(); while (itr.hasNext()) { Entry<K, V> entry = itr.next(); K k = entry.getKey(); V v = entry.getValue(); K conflict = inverse.delegate.putIfAbsent(v, k); if (conflict != null) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 14.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
} else { return new Itr<E>(this, index); } } /** A singleton implementation of iterator() for the empty ImmutableList. */ // TODO(b/345814817): Move this to RegularImmutableList? @SuppressWarnings("ClassInitializationDeadlock") private static final UnmodifiableListIterator<Object> EMPTY_ITR = new Itr<Object>(RegularImmutableList.EMPTY, 0);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Sets.java
} else { return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection)); } } else { Iterator<E> itr = elements.iterator(); if (itr.hasNext()) { EnumSet<E> enumSet = EnumSet.of(itr.next()); Iterators.addAll(enumSet, itr); return ImmutableEnumSet.asImmutable(enumSet); } else { return ImmutableSet.of(); } } } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 81.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
collection.clear(); totalSize -= count; } } private abstract class Itr<T extends @Nullable Object> implements Iterator<T> { final Iterator<Entry<K, Collection<V>>> keyIterator; @Nullable K key; @Nullable Collection<V> collection; Iterator<V> valueIterator; Itr() { keyIterator = map.entrySet().iterator(); key = null; collection = null;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 48.4K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java
public static final String CACHE_ARTIFACT_NOT_FOUND = "canf"; public static final String STRICT_ARTIFACT_DESCRIPTOR_POLICY = "sadp"; public static final String IGNORE_TRANSITIVE_REPOSITORIES = "itr"; public static final String AT_FILE = "af"; @Override protected void prepareOptions(org.apache.commons.cli.Options options) { super.prepareOptions(options);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 25 17:39:57 GMT 2025 - 14.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
assertEquals(ImmutableList.of(-1, 3, 5), result); } public void testLeastOfIterator_simple_nMinusOne_withNullElement() { Iterator<@Nullable Integer> itr = Iterators.forArray(3, null, 5, -1); List<@Nullable Integer> result = Ordering.<Integer>natural().nullsLast().leastOf(itr, 3); assertTrue(result instanceof RandomAccess); assertListImmutable(result); assertEquals(ImmutableList.of(-1, 3, 5), result); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 42.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
assertEquals(ImmutableList.of(-1, 3, 5), result); } public void testLeastOfIterator_simple_nMinusOne_withNullElement() { Iterator<@Nullable Integer> itr = Iterators.forArray(3, null, 5, -1); List<@Nullable Integer> result = Ordering.<Integer>natural().nullsLast().leastOf(itr, 3); assertTrue(result instanceof RandomAccess); assertListImmutable(result); assertEquals(ImmutableList.of(-1, 3, 5), result); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 42.8K bytes - Click Count (0)