Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 914 for iterate (0.05 sec)

  1. guava-tests/test/com/google/common/collect/AbstractBiMapTest.java

        bimap.put(1, "one");
        bimap.put(2, "two");
        bimap.put(3, "three");
        Iterator<Integer> iterator = bimap.keySet().iterator();
        iterator.next();
        iterator.next();
        iterator.remove();
        iterator.next();
        iterator.remove();
        assertEquals(1, bimap.size());
        assertEquals(1, bimap.inverse().size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 14 14:52:51 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        return ImmutableSortedSet.copyOf(elements);
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> copyOf(Iterable<? extends E> elements) {
        return ImmutableSortedSet.copyOf(elements);
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> copyOf(Iterator<? extends E> elements) {
        return ImmutableSortedSet.copyOf(elements);
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        @SuppressWarnings("rawtypes") // the purpose is to test raw type
        Invokable<?, Iterable> delegate =
            Prepender.method("prepend", String.class, Iterable.class).returning(Iterable.class);
        assertEquals(new TypeToken<Iterable<String>>() {}, delegate.getReturnType());
        @SuppressWarnings("unchecked") // prepend() returns Iterable<String>
        Iterable<String> result = delegate.invoke(null, "a", ImmutableList.of("b", "c"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/InvokableTest.java

        @SuppressWarnings("rawtypes") // the purpose is to test raw type
        Invokable<?, Iterable> delegate =
            Prepender.method("prepend", String.class, Iterable.class).returning(Iterable.class);
        assertEquals(new TypeToken<Iterable<String>>() {}, delegate.getReturnType());
        @SuppressWarnings("unchecked") // prepend() returns Iterable<String>
        Iterable<String> result = delegate.invoke(null, "a", ImmutableList.of("b", "c"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TreeMultiset.java

        }
        return (node == header || !range.contains(node.getElement())) ? null : node;
      }
    
      @Override
      Iterator<E> elementIterator() {
        return Multisets.elementIterator(entryIterator());
      }
    
      @Override
      Iterator<Entry<E>> entryIterator() {
        return new Iterator<Entry<E>>() {
          @CheckForNull AvlNode<E> current = firstNode();
          @CheckForNull Entry<E> prevEntry;
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/CollectorTester.java

        SEQUENTIAL {
          @Override
          final <T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object>
              A result(Collector<T, A, R> collector, Iterable<T> inputs) {
            A accum = collector.supplier().get();
            for (T input : inputs) {
              collector.accumulator().accept(accum, input);
            }
            return accum;
          }
        },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

      public void testEntrySet_iteratorRemovePropagates() {
        Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator();
        assertTrue(
            "non-empty multiset.entrySet() iterator.hasNext() returned false", iterator.hasNext());
        assertEquals(
            "multiset.entrySet() iterator.next() returned incorrect entry",
            Multisets.immutableEntry(e0(), 1),
            iterator.next());
        assertFalse(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.Maps.IteratorBasedAbstractMap;
    import java.util.Iterator;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.NoSuchElementException;
    import java.util.Set;
    import java.util.SortedMap;
    import javax.annotation.CheckForNull;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {};
        ImmutableTypeToInstanceMap<Iterable<?>[]> map =
            ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build();
        assertEquals(1, map.size());
        // Redundant cast works around a javac bug.
        assertThat((Iterable<?>[]) map.getInstance(type)).asList().containsExactly(array[0]);
      }
    
      public void testWildcardType() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

        Iterator<E> iterator = collection.iterator();
        assertSetCount(e3(), 1);
        assertThrows(ConcurrentModificationException.class, () -> iterator.next());
      }
    
      @CollectionFeature.Require({SUPPORTS_ADD, FAILS_FAST_ON_CONCURRENT_MODIFICATION})
      public void testSetCountZeroToOneConcurrentWithEntrySetIteration() {
        Iterator<Entry<E>> iterator = getMultiset().entrySet().iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top