Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for ContiguousSet (0.18 sec)

  1. 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)
  2. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  3. 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)
  4. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 19.1K bytes
    - Viewed (0)
  5. 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)
  6. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableRangeSet.java

            long total = 0;
            for (Range<C> range : ranges) {
              if (range.contains(c)) {
                return Ints.saturatedCast(total + ContiguousSet.create(range, domain).indexOf(c));
              } else {
                total += ContiguousSet.create(range, domain).size();
              }
            }
            throw new AssertionError("impossible");
          }
          return -1;
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

            long total = 0;
            for (Range<C> range : ranges) {
              if (range.contains(c)) {
                return Ints.saturatedCast(total + ContiguousSet.create(range, domain).indexOf(c));
              } else {
                total += ContiguousSet.create(range, domain).size();
              }
            }
            throw new AssertionError("impossible");
          }
          return -1;
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Range.java

       *       other words, {@code ContiguousSet.create(a.canonical(domain), domain).equals(
       *       ContiguousSet.create(a, domain))}
       *   <li>uniqueness: unless {@code a.isEmpty()}, {@code ContiguousSet.create(a,
       *       domain).equals(ContiguousSet.create(b, domain))} implies {@code
       *       a.canonical(domain).equals(b.canonical(domain))}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RangeSet.java

     * be as expected on discrete ranges. See the Javadoc of those methods for details.
     *
     * <p>For a {@link Set} whose contents are specified by a {@link Range}, see {@link ContiguousSet}.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#rangeset">RangeSets</a>.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 9.8K bytes
    - Viewed (0)
Back to top