Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for RegularImmutableSortedSet (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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
    - 50.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

       * Tests that we workaround GWT bug #3621 (or that it is already fixed).
       *
       * A call to of() with a parameter that is not a plain Object[] (here,
       * Interface[]) creates a RegularImmutableSortedSet backed by an array of that
       * type. Later, RegularImmutableSortedSet.toArray() calls System.arraycopy()
       * to copy from that array to the destination array. This would be fine, but
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top