Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for DiscreteDomain (0.18 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
    @ElementTypesAreNonnullByDefault
    public abstract class DiscreteDomain<C extends Comparable> {
    
      /**
       * Returns the discrete domain for values of type {@code Integer}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Cut.java

      abstract Cut<C> withLowerBoundType(BoundType boundType, DiscreteDomain<C> domain);
    
      abstract Cut<C> withUpperBoundType(BoundType boundType, DiscreteDomain<C> domain);
    
      abstract void describeAsLowerBound(StringBuilder sb);
    
      abstract void describeAsUpperBound(StringBuilder sb);
    
      @CheckForNull
      abstract C leastValueAbove(DiscreteDomain<C> domain);
    
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ContiguousSet.java

       * @since 23.0
       */
      public static ContiguousSet<Long> closedOpen(long lower, long upper) {
        return create(Range.closedOpen(lower, upper), DiscreteDomain.longs());
      }
    
      final DiscreteDomain<C> domain;
    
      ContiguousSet(DiscreteDomain<C> domain) {
        super(Ordering.natural());
        this.domain = domain;
      }
    
      @Override
      public ContiguousSet<C> headSet(C toElement) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Cut.java

      abstract Cut<C> withLowerBoundType(BoundType boundType, DiscreteDomain<C> domain);
    
      abstract Cut<C> withUpperBoundType(BoundType boundType, DiscreteDomain<C> domain);
    
      abstract void describeAsLowerBound(StringBuilder sb);
    
      abstract void describeAsUpperBound(StringBuilder sb);
    
      @CheckForNull
      abstract C leastValueAbove(DiscreteDomain<C> domain);
    
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ContiguousSet.java

       * @since 23.0
       */
      public static ContiguousSet<Long> closedOpen(long lower, long upper) {
        return create(Range.closedOpen(lower, upper), DiscreteDomain.longs());
      }
    
      final DiscreteDomain<C> domain;
    
      ContiguousSet(DiscreteDomain<C> domain) {
        super(Ordering.natural());
        this.domain = domain;
      }
    
      @Override
      public ContiguousSet<C> headSet(C toElement) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          }
          return builder.build().asSet(DiscreteDomain.bigIntegers());
        }
      }
    
      public static Test suite() {
        TestSuite suite = new TestSuite();
        suite.addTestSuite(ImmutableRangeSetTest.class);
        suite.addTest(
            NavigableSetTestSuiteBuilder.using(new ImmutableRangeSetIntegerAsSetGenerator())
                .named("ImmutableRangeSet.asSet[DiscreteDomain.integers[]]")
                .withFeatures(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

    import junit.framework.TestSuite;
    
    /**
     * @author Gregory Kick
     */
    @GwtCompatible(emulated = true)
    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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularContiguousSet.java

      @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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top