Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 55 for ImmutableSortedSet (0.15 sec)

  1. android/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
    - 17.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java

      @Override
      @CheckForNull
      public Entry<E> lastEntry() {
        return forward.firstEntry();
      }
    
      @Override
      public int size() {
        return forward.size();
      }
    
      @Override
      public ImmutableSortedSet<E> elementSet() {
        return forward.elementSet().descendingSet();
      }
    
      @Override
      Entry<E> getEntry(int index) {
        return forward.entrySet().asList().reverse().get(index);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. 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())}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

        if (mutable) {
          for (int i = 0; i < reps; i++) {
            dummy += new TreeSet<Integer>(input).first();
          }
        } else {
          for (int i = 0; i < reps; i++) {
            dummy += ImmutableSortedSet.copyOf(input).first();
          }
        }
        return dummy;
      }
    
      private static final Ordering<Integer> ORDERING = Ordering.natural();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

        }
      }
    
      private transient @Nullable ImmutableSortedSet<K> keySet;
    
      @Override
      public ImmutableSortedSet<K> keySet() {
        ImmutableSortedSet<K> ks = keySet;
        return (ks == null) ? (keySet = createKeySet()) : ks;
      }
    
      @Override
      ImmutableSortedSet<K> createKeySet() {
        // the keySet() of the delegate is only a Set and TreeMap.navigatableKeySet
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ContiguousSet.java

     * @since 10.0
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("rawtypes") // allow ungenerified Comparable types
    @ElementTypesAreNonnullByDefault
    public abstract class ContiguousSet<C extends Comparable> extends ImmutableSortedSet<C> {
      /**
       * Returns a {@code ContiguousSet} containing the same values in the given domain {@linkplain
       * Range#contains contained} by the range.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertEquals(ImmutableSet.of(), ArbitraryInstances.get(ImmutableSet.class));
        assertEquals(ImmutableSortedSet.of(), ArbitraryInstances.get(SortedSet.class));
        assertEquals(ImmutableSortedSet.of(), ArbitraryInstances.get(ImmutableSortedSet.class));
        assertEquals(ImmutableList.of(), ArbitraryInstances.get(Collection.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

        if (mutable) {
          for (int i = 0; i < reps; i++) {
            dummy += new TreeSet<Integer>(input).first();
          }
        } else {
          for (int i = 0; i < reps; i++) {
            dummy += ImmutableSortedSet.copyOf(input).first();
          }
        }
        return dummy;
      }
    
      private static final Ordering<Integer> ORDERING = Ordering.natural();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testFirst_sortedSet() {
        SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a");
        assertThat(FluentIterable.from(sortedSet).first()).hasValue("a");
      }
    
      public void testFirst_emptySortedSet() {
        SortedSet<String> sortedSet = ImmutableSortedSet.of();
        assertThat(FluentIterable.from(sortedSet).first()).isAbsent();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

            tableSize,
            ((RegularImmutableSet<Integer>) set).table.length);
      }
    
      public void testCopyOf_copiesImmutableSortedSet() {
        ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a");
        ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet);
        assertNotSame(sortedSet, copy);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top