Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for DiscreteDomain (0.06 sec)

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

     * "https://github.com/google/guava/wiki/RangesExplained#discrete-domains">{@code
     * DiscreteDomain}</a>.
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    @GwtCompatible
    public abstract class DiscreteDomain<C extends Comparable> {
    
      /**
       * Returns the discrete domain for values of type {@code Integer}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/DiscreteDomain.java

     * "https://github.com/google/guava/wiki/RangesExplained#discrete-domains">{@code
     * DiscreteDomain}</a>.
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    @GwtCompatible
    public abstract class DiscreteDomain<C extends Comparable> {
    
      /**
       * Returns the discrete domain for values of type {@code Integer}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Cut.java

      abstract Cut<C> withUpperBoundType(BoundType boundType, DiscreteDomain<C> domain);
    
      abstract void describeAsLowerBound(StringBuilder sb);
    
      abstract void describeAsUpperBound(StringBuilder sb);
    
      abstract @Nullable C leastValueAbove(DiscreteDomain<C> domain);
    
      abstract @Nullable C greatestValueBelow(DiscreteDomain<C> domain);
    
      /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          for (Object o : elements) {
            Integer i = (Integer) o;
            builder.add(Range.singleton(i));
          }
          return builder.build().asSet(DiscreteDomain.integers());
        }
      }
    
      @AndroidIncompatible // test-suite builders
      static final class ImmutableRangeSetBigIntegerAsSetGenerator
          implements TestSetGenerator<BigInteger> {
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.ContiguousSet;
    import com.google.common.collect.DiscreteDomain;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.ImmutableSortedSet;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Ordering;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

          throw new IllegalArgumentException(
              "Neither the DiscreteDomain nor this range set are bounded below");
        } else if (!span.hasUpperBound()) {
          try {
            domain.maxValue();
          } catch (NoSuchElementException e) {
            throw new IllegalArgumentException(
                "Neither the DiscreteDomain nor this range set are bounded above");
          }
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * @author Gregory Kick
     */
    @GwtCompatible
    @NullUnmarked
    public class ContiguousSetTest extends TestCase {
      private static final DiscreteDomain<Integer> NOT_EQUAL_TO_INTEGERS =
          new DiscreteDomain<Integer>() {
            @Override
            public Integer next(Integer value) {
              return integers().next(value);
            }
    
            @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/EmptyContiguousSet.java

        return 0;
      }
    
      @GwtIncompatible
      @J2ktIncompatible
      private static final class SerializedForm<C extends Comparable> implements Serializable {
        private final DiscreteDomain<C> domain;
    
        private SerializedForm(DiscreteDomain<C> domain) {
          this.domain = domain;
        }
    
        private Object readResolve() {
          return new EmptyContiguousSet<>(domain);
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    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;
    import org.jspecify.annotations.NullUnmarked;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularContiguousSet.java

      }
    
      @GwtIncompatible
      @J2ktIncompatible
      private static final class SerializedForm<C extends Comparable> implements Serializable {
        final Range<C> range;
        final DiscreteDomain<C> domain;
    
        private SerializedForm(Range<C> range, DiscreteDomain<C> domain) {
          this.range = range;
          this.domain = domain;
        }
    
        private Object readResolve() {
          return new RegularContiguousSet<>(range, domain);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.3K bytes
    - Viewed (0)
Back to top