Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for RegularImmutableSortedSet (0.15 sec)

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

    @SuppressWarnings({"serial", "rawtypes"})
    @ElementTypesAreNonnullByDefault
    final class RegularImmutableSortedSet<E> extends ImmutableSortedSet<E> {
      static final RegularImmutableSortedSet<Comparable> NATURAL_EMPTY_SET =
          new RegularImmutableSortedSet<>(ImmutableList.<Comparable>of(), Ordering.natural());
    
      private final transient ImmutableList<E> elements;
    
      RegularImmutableSortedSet(ImmutableList<E> elements, Comparator<? super E> comparator) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

      static final ImmutableSortedMultiset<?> NATURAL_EMPTY_MULTISET =
          new RegularImmutableSortedMultiset<>(Ordering.natural());
    
      @VisibleForTesting final transient RegularImmutableSortedSet<E> elementSet;
      private final transient long[] cumulativeCounts;
      private final transient int offset;
      private final transient int length;
    
      RegularImmutableSortedMultiset(Comparator<? super E> comparator) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      static <E> RegularImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) {
        if (Ordering.natural().equals(comparator)) {
          @SuppressWarnings("unchecked") // The natural-ordered empty set supports all types.
          RegularImmutableSortedSet<E> result =
              (RegularImmutableSortedSet<E>) RegularImmutableSortedSet.NATURAL_EMPTY_SET;
          return result;
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

      }
    
      private static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
      // TODO(b/345814817): Move this to RegularImmutableSortedSet?
      @SuppressWarnings({"unchecked", "ClassInitializationDeadlock"})
      private static final ImmutableSortedSet<Object> NATURAL_EMPTY_SET =
          new RegularImmutableSortedSet<Object>(
              new TreeSet<Object>((Comparator<Object>) NATURAL_ORDER), false);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

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

      }
    
      static <E> RegularImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) {
        if (Ordering.natural().equals(comparator)) {
          @SuppressWarnings("unchecked") // The natural-ordered empty set supports all types.
          RegularImmutableSortedSet<E> result =
              (RegularImmutableSortedSet<E>) RegularImmutableSortedSet.NATURAL_EMPTY_SET;
          return result;
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedAsList.java

       */
      @Override
      ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
        ImmutableList<E> parentSubList = super.subListUnchecked(fromIndex, toIndex);
        return new RegularImmutableSortedSet<E>(parentSubList, comparator()).asList();
      }
    
      @Override
      public Spliterator<E> spliterator() {
        return CollectSpliterators.indexed(
            size(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      }
    
      /** Returns an immutable sorted multiset containing a single element. */
      public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1) {
        RegularImmutableSortedSet<E> elementSet =
            (RegularImmutableSortedSet<E>) ImmutableSortedSet.of(e1);
        long[] cumulativeCounts = {0, 1};
        return new RegularImmutableSortedMultiset<>(elementSet, cumulativeCounts, 0, 1);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableRangeSet.java

        if (ranges.isEmpty()) {
          return ImmutableSet.of();
        }
        return new RegularImmutableSortedSet<>(ranges, Range.<C>rangeLexOrdering());
      }
    
      @Override
      public ImmutableSet<Range<C>> asDescendingSetOfRanges() {
        if (ranges.isEmpty()) {
          return ImmutableSet.of();
        }
        return new RegularImmutableSortedSet<>(ranges.reverse(), Range.<C>rangeLexOrdering().reverse());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        }
      }
    
      private final transient RegularImmutableSortedSet<K> keySet;
      private final transient ImmutableList<V> valueList;
      @CheckForNull private transient ImmutableSortedMap<K, V> descendingMap;
    
      ImmutableSortedMap(RegularImmutableSortedSet<K> keySet, ImmutableList<V> valueList) {
        this(keySet, valueList, null);
      }
    
      ImmutableSortedMap(
          RegularImmutableSortedSet<K> keySet,
          ImmutableList<V> valueList,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top