Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 163 for ImmutableSet (0.05 sec)

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

      }
    
      public void testCellSet() {
        assertEquals(ImmutableSet.of(immutableCell('a', 1, "blah")), testTable.cellSet());
      }
    
      public void testColumn() {
        assertEquals(ImmutableMap.of(), testTable.column(0));
        assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1));
      }
    
      public void testColumnKeySet() {
        assertEquals(ImmutableSet.of(1), testTable.columnKeySet());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/MediaTypeTest.java

            MediaType.parse("text/plain; a=1; a=2").withParameters("a", ImmutableSet.<String>of()));
        assertEquals(
            MediaType.parse("text/plain; a=1"),
            MediaType.parse("text/plain").withParameters("a", ImmutableSet.of("1")));
        assertEquals(
            MediaType.parse("text/plain; a=1"),
            MediaType.parse("text/plain; a=1; a=2").withParameters("a", ImmutableSet.of("1")));
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableTable.java

          }
        }
      }
    
      ImmutableTable() {}
    
      @Override
      public ImmutableSet<Cell<R, C, V>> cellSet() {
        return (ImmutableSet<Cell<R, C, V>>) super.cellSet();
      }
    
      @Override
      abstract ImmutableSet<Cell<R, C, V>> createCellSet();
    
      @Override
      final UnmodifiableIterator<Cell<R, C, V>> cellIterator() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMap.java

      }
    
      abstract ImmutableSet<Entry<K, V>> createEntrySet();
    
      @LazyInit @RetainedWith private transient @Nullable ImmutableSet<K> keySet;
    
      /**
       * Returns an immutable set of the keys in this map, in the same order that they appear in {@link
       * #entrySet}.
       */
      @Override
      public ImmutableSet<K> keySet() {
        ImmutableSet<K> result = keySet;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/GraphsTest.java

        assertThat(undirectedGraph.edges()).isEmpty();
        assertThat(undirectedGraph.addEdge(N1, N2, E12)).isTrue();
        assertThat(undirectedGraph.edgesConnecting(N1, N2)).isEqualTo(ImmutableSet.of(E12));
        assertThat(undirectedGraph.edgesConnecting(N2, N1)).isEqualTo(ImmutableSet.of(E12));
    
        // By default, parallel edges are not allowed.
        IllegalArgumentException e =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

      private static final ClassLoader NO_VAR_HANDLE =
          getClassLoader(ImmutableSet.of("java.lang.invoke.VarHandle"));
    
      /**
       * This classloader disallows {@link java.lang.invoke.VarHandle} and {@link sun.misc.Unsafe},
       * which will prevent us from selecting the {@code UnsafeAtomicHelper} strategy.
       */
      private static final ClassLoader NO_UNSAFE =
          getClassLoader(ImmutableSet.of("java.lang.invoke.VarHandle", "sun.misc.Unsafe"));
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      static final CharSink BROKEN_OPEN_SINK = new TestCharSink(OPEN_THROWS);
    
      private static final ImmutableSet<CharSource> BROKEN_SOURCES =
          ImmutableSet.of(BROKEN_CLOSE_SOURCE, BROKEN_OPEN_SOURCE, BROKEN_READ_SOURCE);
      private static final ImmutableSet<CharSink> BROKEN_SINKS =
          ImmutableSet.of(BROKEN_CLOSE_SINK, BROKEN_OPEN_SINK, BROKEN_WRITE_SINK);
    
      public void testCopyExceptions() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableEnumSet.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link ImmutableSet} backed by a non-empty {@link java.util.EnumSet}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @SuppressWarnings("serial") // we're overriding default serialization
    final class ImmutableEnumSet<E extends Enum<E>> extends ImmutableSet<E> {
      static <E extends Enum<E>> ImmutableSet<E> asImmutable(EnumSet<E> set) {
        switch (set.size()) {
          case 0:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

      }
    
      @Override
      public int count(@Nullable Object element) {
        return delegateMap.getOrDefault(element, 0);
      }
    
      @LazyInit private transient @Nullable ImmutableSet<E> elementSet;
    
      @Override
      public ImmutableSet<E> elementSet() {
        ImmutableSet<E> result = elementSet;
        return (result == null) ? elementSet = new ElementSet<>(entries, this) : result;
      }
    
      @Override
      Entry<E> getEntry(int index) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 08 13:05:15 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

          return new SampleElements<>(
              mapEntry("one", ImmutableSet.of(10000)),
              mapEntry("two", ImmutableSet.of(-2000)),
              mapEntry("three", ImmutableSet.of(300)),
              mapEntry("four", ImmutableSet.of(-40)),
              mapEntry("five", ImmutableSet.of(5)));
        }
    
        @Override
        public Map<String, Collection<Integer>> create(Object... elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top