Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 914 for iterate (0.06 sec)

  1. guava/src/com/google/common/collect/ObjectArrays.java

       * <i>only</i> if the caller knows that the collection does not contain any null elements.
       *
       * <p>This method returns the elements in the order they are returned by the collection's
       * iterator.
       *
       * <p>TODO(kevinb): support concurrently modified collections?
       *
       * @param c the collection for which to return an array of elements
       * @param array the array in which to place the collection elements
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/Stats.java

       *     cause loss of precision)
       */
      public static Stats of(Iterable<? extends Number> values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator.snapshot();
      }
    
      /**
       * Returns statistics over a dataset containing the given values. The iterator will be completely
       * consumed by this method.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

      }
    
      /**
       * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount /
       * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate +
       * missRate =~ 1.0}.
       */
      public double hitRate() {
        long requestCount = requestCount();
        return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/CacheStats.java

      }
    
      /**
       * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount /
       * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate +
       * missRate =~ 1.0}.
       */
      public double hitRate() {
        long requestCount = requestCount();
        return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

        POST_ORDER {
          @Override
          <T> Iterable<T> view(T root, TreeTraverser<T> viewer) {
            return viewer.postOrderTraversal(root);
          }
        },
        BREADTH_FIRST {
          @Override
          <T> Iterable<T> view(T root, TreeTraverser<T> viewer) {
            return viewer.breadthFirstTraversal(root);
          }
        };
    
        abstract <T> Iterable<T> view(T root, TreeTraverser<T> viewer);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 26 19:18:53 UTC 2019
    - 4.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SortedMultisets.java

          this.multiset = multiset;
        }
    
        @Override
        final SortedMultiset<E> multiset() {
          return multiset;
        }
    
        @Override
        public Iterator<E> iterator() {
          return Multisets.elementIterator(multiset().entrySet().iterator());
        }
    
        @Override
        public Comparator<? super E> comparator() {
          return multiset().comparator();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/DoubleMathTest.java

        assertThat(DoubleMath.mean(ImmutableList.of(11, -22, 44, -88).iterator()))
            .isWithin(1.0e-10)
            .of(-13.75);
        assertThat(DoubleMath.mean(ImmutableList.of(11).iterator())).isWithin(1.0e-10).of(11);
        assertThrows(
            IllegalArgumentException.class,
            () -> DoubleMath.mean(ImmutableList.<Integer>of().iterator()));
      }
    
      @GwtIncompatible // DoubleMath.mean
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        public E element() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.element();
        }
    
        @Override
        public Iterator<E> iterator() {
          // We explicitly don't lock for iterator()
          assertFalse(Thread.holdsLock(mutex));
          return delegate.iterator();
        }
    
        @Override
        public int size() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.size();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Multiset.java

      // Refined Collection Methods
    
      /**
       * {@inheritDoc}
       *
       * <p>Elements that occur multiple times in the multiset will appear multiple times in this
       * iterator, though not necessarily sequentially.
       */
      @Override
      Iterator<E> iterator();
    
      /**
       * Determines whether this multiset contains the specified element.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableTable.java

    import com.google.errorprone.annotations.DoNotMock;
    import java.io.InvalidObjectException;
    import java.io.ObjectInputStream;
    import java.io.Serializable;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.function.BinaryOperator;
    import java.util.function.Function;
    import java.util.stream.Collector;
    import javax.annotation.CheckForNull;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top