Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 173 for ImmutableSet (0.53 seconds)

  1. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        Collection<String> set = ImmutableSet.of("a", "b");
        assertEquals(emptyList(), newArrayList(skip(set, 20)));
      }
    
      public void testSkip_pastEndList() {
        Collection<String> list = newArrayList("a", "b");
        assertEquals(emptyList(), newArrayList(skip(list, 20)));
      }
    
      public void testSkip_skipNone() {
        Collection<String> set = ImmutableSet.of("a", "b");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 45.6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java

    /**
     * {@code entrySet()} implementation for {@link ImmutableMap}.
     *
     * @author Jesse Wilson
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    abstract class ImmutableMapEntrySet<K, V> extends ImmutableSet<Entry<K, V>> {
      static final class RegularEntrySet<K, V> extends ImmutableMapEntrySet<K, V> {
        private final transient ImmutableMap<K, V> map;
        private final transient ImmutableList<Entry<K, V>> entries;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

     * writeReplace} when serializing an instance of the subclass. For an example of this problem, see
     * b/310253115.
     */
    @NullUnmarked
    public class WriteReplaceOverridesTest extends TestCase {
      private static final ImmutableSet<String> GUAVA_PACKAGES =
          FluentIterable.of(
                  "base",
                  "cache",
                  "collect",
                  "escape",
                  "eventbus",
                  "graph",
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 01 03:07:54 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

                .createTestSuite());
        suite.addTestSuite(ImmutableEnumMapTest.class);
        return suite;
      }
    
      public void testIteratesOnce() {
        Map<AnEnum, AnEnum> map =
            Maps.asMap(
                ImmutableSet.of(AnEnum.A),
                new Function<AnEnum, AnEnum>() {
                  boolean used = false;
    
                  @Override
                  public AnEnum apply(AnEnum ae) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  5. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableMultimap;
    import com.google.common.collect.ImmutableMultiset;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.ImmutableSetMultimap;
    import com.google.common.collect.ImmutableSortedMap;
    import com.google.common.collect.ImmutableSortedMultiset;
    import com.google.common.collect.ImmutableSortedSet;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 17.4K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableMapEntrySet.java

    /**
     * {@code entrySet()} implementation for {@link ImmutableMap}.
     *
     * @author Jesse Wilson
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    abstract class ImmutableMapEntrySet<K, V> extends ImmutableSet.CachingAsList<Entry<K, V>> {
      private static final int SPLITERATOR_CHARACTERISTICS =
          Spliterator.ORDERED | Spliterator.DISTINCT | Spliterator.NONNULL | Spliterator.IMMUTABLE;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        ImmutableSet<String> set = ImmutableSortedSet.of("a", "e", "i", "o", "u").subSet("c", "r");
        ImmutableList<String> list = set.asList();
        assertTrue(list instanceof ImmutableSortedAsList);
        ImmutableList<String> copy = SerializableTester.reserializeAndAssert(list);
        assertTrue(copy instanceof ImmutableSortedAsList);
      }
    
      public void testAsListInconsistentComparator() {
        ImmutableSet<String> set =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 46.7K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                        for (String s : elements) {
                          checkArgument(set.add(s));
                          builder.addCopies(s, 2);
                        }
                        ImmutableSet<String> elementSet =
                            (ImmutableSet<String>) builder.build().elementSet();
                        return elementSet.asList();
                      }
                    })
                .named("ImmutableMultiset.elementSet.asList")
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  9. guava/src/com/google/common/base/Functions.java

       * documented at {@link Function#apply}). For example, this function yields different results for
       * the two equal instances {@code ImmutableSet.of(1, 2)} and {@code ImmutableSet.of(2, 1)}.
       *
       * <p><b>Warning:</b> as with all function types in this package, avoid depending on the specific
       * {@code equals}, {@code hashCode} or {@code toString} behavior of the returned function. A
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/MapsTest.java

        bimap.put("one", 1);
        BiMap<String, Integer> sync = Maps.synchronizedBiMap(bimap);
        bimap.put("two", 2);
        sync.put("three", 3);
        assertEquals(ImmutableSet.of(1, 2, 3), bimap.inverse().keySet());
        assertEquals(ImmutableSet.of(1, 2, 3), sync.inverse().keySet());
      }
    
      private static final Function<Integer, Double> SQRT_FUNCTION = in -> Math.sqrt(in);
    
      public void testTransformValues() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (0)
Back to Top