Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ImmutableRangeSet (0.09 sec)

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

      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) {
          ImmutableRangeSet<C> immutableRangeSet = (ImmutableRangeSet<C>) rangeSet;
          if (!immutableRangeSet.isPartialView()) {
    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-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        Range<Integer> rangeFour = Range.closedOpen(6, 7);
    
        ImmutableRangeSet.Builder<Integer> zis =
            ImmutableRangeSet.<Integer>builder().add(rangeOne).add(rangeTwo);
        ImmutableRangeSet.Builder<Integer> zat =
            ImmutableRangeSet.<Integer>builder().add(rangeThree).add(rangeFour);
    
        ImmutableRangeSet<Integer> rangeSet = zis.combine(zat).build();
    
        assertThat(rangeSet.asRanges())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CollectCollectors.java

      @GwtIncompatible
      private static final Collector<Range<Comparable<?>>, ?, ImmutableRangeSet<Comparable<?>>>
          TO_IMMUTABLE_RANGE_SET =
              Collector.of(
                  ImmutableRangeSet::builder,
                  ImmutableRangeSet.Builder::add,
                  ImmutableRangeSet.Builder::combine,
                  ImmutableRangeSet.Builder::build);
    
      // Lists
    
      @SuppressWarnings({"rawtypes", "unchecked"})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            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);
      }
    
      public enum SetMultimapImpl {
        HashMultimapImpl {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            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);
      }
    
      public enum SetMultimapImpl {
        HashMultimapImpl {
          @Override
    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