Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for ContiguousSet (0.21 sec)

  1. 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  2. 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) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  3. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 28 18:35:00 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

                ContiguousSet.create(Range.open(0, 4), integers()),
                ContiguousSet.create(Range.closed(1, 3), NOT_EQUAL_TO_INTEGERS),
                ContiguousSet.create(Range.closedOpen(1, 4), NOT_EQUAL_TO_INTEGERS),
                ContiguousSet.create(Range.openClosed(0, 3), NOT_EQUAL_TO_INTEGERS),
                ContiguousSet.create(Range.open(0, 4), NOT_EQUAL_TO_INTEGERS),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 19.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

                ContiguousSet.create(Range.open(0, 4), integers()),
                ContiguousSet.create(Range.closed(1, 3), NOT_EQUAL_TO_INTEGERS),
                ContiguousSet.create(Range.closedOpen(1, 4), NOT_EQUAL_TO_INTEGERS),
                ContiguousSet.create(Range.openClosed(0, 3), NOT_EQUAL_TO_INTEGERS),
                ContiguousSet.create(Range.open(0, 4), NOT_EQUAL_TO_INTEGERS),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 19.1K bytes
    - Viewed (0)
  6. 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)
  7. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. 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)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          extends TestIntegerSortedSetGenerator {
        protected final ContiguousSet<Integer> checkedCreate(SortedSet<Integer> elementsSet) {
          List<Integer> elements = newArrayList(elementsSet);
          /*
           * A ContiguousSet can't have holes. If a test demands a hole, it should be changed so that it
           * doesn't need one, or it should be suppressed for ContiguousSet.
           */
          for (int i = 0; i < elements.size() - 1; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          extends TestIntegerSortedSetGenerator {
        protected final ContiguousSet<Integer> checkedCreate(SortedSet<Integer> elementsSet) {
          List<Integer> elements = newArrayList(elementsSet);
          /*
           * A ContiguousSet can't have holes. If a test demands a hole, it should be changed so that it
           * doesn't need one, or it should be suppressed for ContiguousSet.
           */
          for (int i = 0; i < elements.size() - 1; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top