Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ContiguousSet (0.24 sec)

  1. android/guava/src/com/google/common/collect/EmptyContiguousSet.java

        return 0;
      }
    
      @Override
      public ContiguousSet<C> intersection(ContiguousSet<C> other) {
        return this;
      }
    
      @Override
      public Range<C> range() {
        throw new NoSuchElementException();
      }
    
      @Override
      public Range<C> range(BoundType lowerBoundType, BoundType upperBoundType) {
        throw new NoSuchElementException();
      }
    
      @Override
      ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 28 18:35:00 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

    import com.google.common.collect.ContiguousSet;
    import com.google.common.collect.DiscreteDomain;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Range;
    import java.util.Random;
    
    /** Benchmarks some algorithms providing the same functionality as {@link Quantiles}. */
    public class QuantilesBenchmark {
    
      private static final ContiguousSet<Integer> ALL_DECILE_INDEXES =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/EmptyContiguousSet.java

        return 0;
      }
    
      @Override
      public ContiguousSet<C> intersection(ContiguousSet<C> other) {
        return this;
      }
    
      @Override
      public Range<C> range() {
        throw new NoSuchElementException();
      }
    
      @Override
      public Range<C> range(BoundType lowerBoundType, BoundType upperBoundType) {
        throw new NoSuchElementException();
      }
    
      @Override
      ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Mar 28 18:35:00 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        super(domain);
        this.range = range;
      }
    
      private ContiguousSet<C> intersectionInCurrentDomain(Range<C> other) {
        return range.isConnected(other)
            ? ContiguousSet.create(range.intersection(other), domain)
            : new EmptyContiguousSet<C>(domain);
      }
    
      @Override
      ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

    import com.google.common.collect.ContiguousSet;
    import com.google.common.collect.DiscreteDomain;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Range;
    import java.util.Random;
    
    /** Benchmarks some algorithms providing the same functionality as {@link Quantiles}. */
    public class QuantilesBenchmark {
    
      private static final ContiguousSet<Integer> ALL_DECILE_INDEXES =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/PowerSetBenchmark.java

     */
    public class PowerSetBenchmark {
      @Param({"2", "4", "8", "16"})
      int elements;
    
      Set<Set<Integer>> powerSet;
    
      @BeforeExperiment
      void setUp() {
        Set<Integer> set = ContiguousSet.create(Range.closed(1, elements), integers());
        powerSet = Sets.powerSet(set);
      }
    
      @Benchmark
      int iteration(int reps) {
        int sum = 0;
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      /*
       * TODO(cpovirk): make "too small" and "too large" elements available for better navigation
       * testing. At that point, we may be able to eliminate the "hole" tests, which would mean that
       * ContiguousSet's tests would no longer need to suppress them.
       */
      @CollectionSize.Require(SEVERAL)
      public void testLower() {
        assertEquals(null, navigableSet.lower(a));
        assertEquals(a, navigableSet.lower(b));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/collect/PowerSetBenchmark.java

     */
    public class PowerSetBenchmark {
      @Param({"2", "4", "8", "16"})
      int elements;
    
      Set<Set<Integer>> powerSet;
    
      @BeforeExperiment
      void setUp() {
        Set<Integer> set = ContiguousSet.create(Range.closed(1, elements), integers());
        powerSet = Sets.powerSet(set);
      }
    
      @Benchmark
      int iteration(int reps) {
        int sum = 0;
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      /*
       * TODO(cpovirk): make "too small" and "too large" elements available for better navigation
       * testing. At that point, we may be able to eliminate the "hole" tests, which would mean that
       * ContiguousSet's tests would no longer need to suppress them.
       */
      @CollectionSize.Require(SEVERAL)
      public void testLower() {
        assertEquals(null, navigableSet.lower(a));
        assertEquals(a, navigableSet.lower(b));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/package-info.java

     *       type.
     * </dl>
     *
     * <h2>Ranges</h2>
     *
     * <ul>
     *   <li>{@link Range}
     *   <li>{@link RangeMap}
     *   <li>{@link RangeSet}
     *   <li>{@link DiscreteDomain}
     *   <li>{@link ContiguousSet}
     * </ul>
     *
     * <h2>Classes of static utility methods</h2>
     *
     * <ul>
     *   <li>{@link Collections2}
     *   <li>{@link Comparators}
     *   <li>{@link Iterables}
     *   <li>{@link Iterators}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
Back to top