Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 57 of 57 for ImmutableSortedSet (0.18 sec)

  1. android/guava/src/com/google/common/collect/Sets.java

      // TreeSet
    
      /**
       * Creates a <i>mutable</i>, empty {@code TreeSet} instance sorted by the natural sort ordering of
       * its elements.
       *
       * <p><b>Note:</b> if mutability is not required, use {@link ImmutableSortedSet#of()} instead.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
       * use the {@code TreeSet} constructor directly, taking advantage of <a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FluentIterable.java

      }
    
      /**
       * Returns an {@code ImmutableSortedSet} containing all of the elements from this {@code
       * FluentIterable} in the order specified by {@code comparator}, with duplicates (determined by
       * {@code comparator.compare(x, y) == 0}) removed. To produce an {@code ImmutableSortedSet} sorted
       * by its natural ordering, use {@code toSortedSet(Ordering.natural())}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableCollection.java

     *       how the collection was created. Typically this is insertion order unless an explicit
     *       ordering is otherwise specified (e.g. {@link ImmutableSortedSet#naturalOrder}). See the
     *       appropriate factory method for details. View collections such as {@link
     *       ImmutableMultiset#elementSet} iterate in the same order as the parent, except as noted.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/collect/ImmutableCollection.java

     *       how the collection was created. Typically this is insertion order unless an explicit
     *       ordering is otherwise specified (e.g. {@link ImmutableSortedSet#naturalOrder}). See the
     *       appropriate factory method for details. View collections such as {@link
     *       ImmutableMultiset#elementSet} iterate in the same order as the parent, except as noted.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      @GwtIncompatible // NavigableMap
      public void testAsMapNavigableEmpty() {
        NavigableSet<String> strings = ImmutableSortedSet.of();
        NavigableMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.entrySet()).isEmpty();
        assertTrue(map.isEmpty());
        assertNull(map.get("five"));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      @GwtIncompatible // NavigableMap
      public void testAsMapNavigableEmpty() {
        NavigableSet<String> strings = ImmutableSortedSet.of();
        NavigableMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.entrySet()).isEmpty();
        assertTrue(map.isEmpty());
        assertNull(map.get("five"));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E element) {
        RegularImmutableSortedSet<E> elementSet =
            (RegularImmutableSortedSet<E>) ImmutableSortedSet.of(element);
        long[] cumulativeCounts = {0, 1};
        return new RegularImmutableSortedMultiset<>(elementSet, cumulativeCounts, 0, 1);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
Back to top