Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for ImmutableSortedSet (0.2 sec)

  1. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertFreshInstance(new TypeToken<ImmutableSet<String>>() {});
      }
    
      public void testImmutableSortedSet() {
        assertFreshInstance(new TypeToken<ImmutableSortedSet<String>>() {});
      }
    
      public void testImmutableMultiset() {
        assertFreshInstance(new TypeToken<ImmutableSortedSet<String>>() {});
        assertNotInstantiable(new TypeToken<ImmutableMultiset<EmptyEnum>>() {});
      }
    
      public void testImmutableCollection() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSortedMap.java

          new ImmutableSortedMap<>(
              ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.<Object>of());
    
      static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) {
        if (Ordering.natural().equals(comparator)) {
          return of();
        } else {
          return new ImmutableSortedMap<>(
              ImmutableSortedSet.emptySet(comparator), ImmutableList.<V>of());
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        TreeSet<E> set = Sets.newTreeSet();
        set.add(freshElement);
        return set;
      }
    
      @Generates
      static <E extends Comparable<? super E>> ImmutableSortedSet<E> generateImmutableSortedSet(
          E freshElement) {
        return ImmutableSortedSet.of(freshElement);
      }
    
      @Generates
      static <E> Multiset<E> generateMultiset(@Nullable E freshElement) {
        return generateHashMultiset(freshElement);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        TreeSet<E> set = Sets.newTreeSet();
        set.add(freshElement);
        return set;
      }
    
      @Generates
      static <E extends Comparable<? super E>> ImmutableSortedSet<E> generateImmutableSortedSet(
          E freshElement) {
        return ImmutableSortedSet.of(freshElement);
      }
    
      @Generates
      static <E> Multiset<E> generateMultiset(@Nullable E freshElement) {
        return generateHashMultiset(freshElement);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      public void testGet_emptyList() {
        testGetOnEmpty(Collections.<String>emptyList());
      }
    
      public void testGet_sortedSet() {
        testGetOnAbc(ImmutableSortedSet.of("b", "c", "a"));
      }
    
      public void testGet_emptySortedSet() {
        testGetOnEmpty(ImmutableSortedSet.<String>of());
      }
    
      public void testGet_iterable() {
        testGetOnAbc(ImmutableSet.of("a", "b", "c"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return ImmutableSet.copyOf(contents);
          }
        },
        ImmutableSortedSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
            return ImmutableSortedSet.copyOf(contents);
          }
        },
        ContiguousSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
            return ContiguousSet.copyOf(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)
  7. android/guava/src/com/google/common/collect/ImmutableList.java

       * order in which they appear in the input.
       *
       * <p>If your data has no duplicates, or you wish to deduplicate elements, use {@code
       * ImmutableSortedSet.copyOf(elements)}; if you want a {@code List} you can use its {@code
       * asList()} view.
       *
       * <p><b>Java 8+ users:</b> If you want to convert a {@link java.util.stream.Stream} to a sorted
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularContiguousSet.java

      }
    
      @Override
      ImmutableList<C> createAsList() {
        if (domain.supportsFastOffset) {
          return new ImmutableAsList<C>() {
            @Override
            ImmutableSortedSet<C> delegateCollection() {
              return RegularContiguousSet.this;
            }
    
            @Override
            public C get(int i) {
              checkElementIndex(i, size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          new ImmutableSortedMap<>(
              ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.<Object>of());
    
      static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) {
        if (Ordering.natural().equals(comparator)) {
          return of();
        } else {
          return new ImmutableSortedMap<>(
              ImmutableSortedSet.emptySet(comparator), ImmutableList.<V>of());
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      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)
Back to top