Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 914 for iterate (0.09 sec)

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

      }
    
      public void testSize1() {
        Iterator<Integer> iterator = singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
      public void testSize_partiallyConsumed() {
        Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator();
        iterator.next();
        iterator.next();
        assertEquals(3, Iterators.size(iterator));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

       * half of that is more awkward to arrange...
       */
      private static <T> Iterable<T> iterable(final Collection<T> collection) {
        // return collection::iterator;
        return new Iterable<T>() {
          @Override
          public Iterator<T> iterator() {
            return collection.iterator();
          }
        };
      }
    
      public void testEquals() {
        new EqualsTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testSize1() {
        Iterator<Integer> iterator = singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
      public void testSize_partiallyConsumed() {
        Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator();
        iterator.next();
        iterator.next();
        assertEquals(3, Iterators.size(iterator));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Ordering.java

       * @throws ClassCastException if the parameters are not <i>mutually comparable</i> under this
       *     ordering.
       * @since 11.0
       */
      @ParametricNullness
      public <E extends T> E min(Iterator<E> iterator) {
        // let this throw NoSuchElementException as necessary
        E minSoFar = iterator.next();
    
        while (iterator.hasNext()) {
          minSoFar = this.<E>min(minSoFar, iterator.next());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/IteratorEnumeration.java

        public IteratorEnumeration(final Iterator<T> iterator) {
            assertArgumentNotNull("iterator", iterator);
            this.iterator = iterator;
        }
    
        /**
         * {@link IteratorEnumeration}を作成します。
         *
         * @param iterable
         *            反復可能なオブジェクト。{@literal null}であってはいけません
         */
        public IteratorEnumeration(final Iterable<T> iterable) {
            assertArgumentNotNull("iterable", iterable);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        return new Iterator<T>() {
          Iterator<T> iterator = Collections.<T>emptySet().iterator();
    
          @Override
          public boolean hasNext() {
            return true;
          }
    
          @Override
          public T next() {
            if (!iterator.hasNext()) {
              iterator = iterable.iterator();
            }
            return iterator.next();
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/JoinerTest.java

      // <Integer> needed to prevent warning :(
      private static final Iterable<Integer> ITERABLE_ = Arrays.<Integer>asList();
      private static final Iterable<Integer> ITERABLE_1 = Arrays.asList(1);
      private static final Iterable<Integer> ITERABLE_12 = Arrays.asList(1, 2);
      private static final Iterable<Integer> ITERABLE_123 = Arrays.asList(1, 2, 3);
      private static final Iterable<@Nullable Integer> ITERABLE_NULL = Arrays.asList((Integer) null);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ReverseOrdering.java

        return forwardOrder.max(a, b, c, rest);
      }
    
      @Override
      public <E extends T> E min(Iterator<E> iterator) {
        return forwardOrder.max(iterator);
      }
    
      @Override
      public <E extends T> E min(Iterable<E> iterable) {
        return forwardOrder.max(iterable);
      }
    
      @Override
      public <E extends T> E max(@ParametricNullness E a, @ParametricNullness E b) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java

        return NaturalOrdering.INSTANCE.max(a, b, c, rest);
      }
    
      @Override
      public <E extends Comparable<?>> E min(Iterator<E> iterator) {
        return NaturalOrdering.INSTANCE.max(iterator);
      }
    
      @Override
      public <E extends Comparable<?>> E min(Iterable<E> iterable) {
        return NaturalOrdering.INSTANCE.max(iterable);
      }
    
      @Override
      public <E extends Comparable<?>> E max(E a, E b) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/PairwiseEquivalence.java

        this.elementEquivalence = Preconditions.checkNotNull(elementEquivalence);
      }
    
      @Override
      protected boolean doEquivalent(Iterable<T> iterableA, Iterable<T> iterableB) {
        Iterator<T> iteratorA = iterableA.iterator();
        Iterator<T> iteratorB = iterableB.iterator();
    
        while (iteratorA.hasNext() && iteratorB.hasNext()) {
          if (!elementEquivalence.equivalent(iteratorA.next(), iteratorB.next())) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top