Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for RangeSet (0.05 sec)

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

      }
    
      /** Returns an immutable copy of the specified {@code RangeSet}. */
      public static <C extends Comparable> ImmutableRangeSet<C> copyOf(RangeSet<C> rangeSet) {
        checkNotNull(rangeSet);
        if (rangeSet.isEmpty()) {
          return of();
        } else if (rangeSet.encloses(Range.<C>all())) {
          return all();
        }
    
        if (rangeSet instanceof ImmutableRangeSet) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        }
        RegularImmutableSortedSet<Range<K>> rangeSet =
            new RegularImmutableSortedSet<>(ranges, Range.<K>rangeLexOrdering());
        return new ImmutableSortedMap<>(rangeSet, values);
      }
    
      @Override
      public ImmutableMap<Range<K>, V> asDescendingMapOfRanges() {
        if (ranges.isEmpty()) {
          return ImmutableMap.of();
        }
        RegularImmutableSortedSet<Range<K>> rangeSet =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          @Override
          <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents) {
            return TreeRangeSet.create(contents);
          }
        },
        ImmutableRangeSetImpl {
          @Override
          <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents) {
            return ImmutableRangeSet.copyOf(contents);
          }
        };
    
        abstract <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          @Override
          <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents) {
            return TreeRangeSet.create(contents);
          }
        },
        ImmutableRangeSetImpl {
          @Override
          <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents) {
            return ImmutableRangeSet.copyOf(contents);
          }
        };
    
        abstract <K extends Comparable<K>> RangeSet<K> create(RangeSet<K> contents);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top