Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 163 for ImmutableSet (0.05 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

      }
    
      ImmutableBiMap(Map<K, V> delegate) {
        super(delegate);
      }
    
      public abstract ImmutableBiMap<V, K> inverse();
    
      @Override
      public ImmutableSet<V> values() {
        return inverse().keySet();
      }
    
      public final @Nullable V forcePut(K key, V value) {
        throw new UnsupportedOperationException();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/Files.java

      }
    
      private static final class FileByteSink extends ByteSink {
    
        private final File file;
        private final ImmutableSet<FileWriteMode> modes;
    
        private FileByteSink(File file, FileWriteMode... modes) {
          this.file = checkNotNull(file);
          this.modes = ImmutableSet.copyOf(modes);
        }
    
        @Override
        public FileOutputStream openStream() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            @Override
            public boolean apply(Integer input) {
              return input % 2 == 0;
            }
          };
    
      private static final Predicate<Integer> PRIME_DIGIT = Predicates.in(ImmutableSet.of(2, 3, 5, 7));
    
      private static final ImmutableList<? extends List<Integer>> SAMPLE_INPUTS =
          ImmutableList.of(
              ImmutableList.<Integer>of(),
              ImmutableList.of(1),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return synchronizedSet(new HashSet<E>(contents));
          }
        },
        ImmutableSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
            return ImmutableSet.copyOf(contents);
          }
        },
        ImmutableSortedSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
            return ImmutableSortedSet.copyOf(contents);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertEquals(Range.closed(-3, 5), Range.encloseAll(asList(1, 2, 2, 2, 5, -3, 0, -1)));
      }
    
      public void testEncloseAll_empty() {
        assertThrows(NoSuchElementException.class, () -> Range.encloseAll(ImmutableSet.<Integer>of()));
      }
    
      public void testEncloseAll_nullValue() {
        List<@Nullable Integer> nullFirst = Lists.newArrayList(null, 0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMultimap.java

        return size;
      }
    
      // views
    
      /**
       * Returns an immutable set of the distinct keys in this multimap, in the same order as they
       * appear in this multimap.
       */
      @Override
      public ImmutableSet<K> keySet() {
        return map.keySet();
      }
    
      @Override
      Set<K> createKeySet() {
        throw new AssertionError("unreachable");
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/MediaType.java

    import com.google.common.base.Joiner.MapJoiner;
    import com.google.common.base.Optional;
    import com.google.common.collect.ImmutableListMultimap;
    import com.google.common.collect.ImmutableMultiset;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.Multimaps;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                    new TestStringSetGenerator() {
                      @Override
                      protected Set<String> create(String[] elements) {
                        Iterable<String> rowKeys = ImmutableSet.copyOf(elements);
                        Iterable<Integer> columnKeys = ImmutableList.of(1, 2, 3);
                        Table<String, Integer, Character> table =
                            ArrayTable.create(rowKeys, columnKeys);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableList.java

     * {@link ImmutableCollection}.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/ImmutableCollectionsExplained">immutable collections</a>.
     *
     * @see ImmutableMap
     * @see ImmutableSet
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @GwtCompatible
    @SuppressWarnings("serial") // we're overriding default serialization
    public abstract class ImmutableList<E> extends ImmutableCollection<E>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/RangeTest.java

        assertEquals(Range.closed(-3, 5), Range.encloseAll(asList(1, 2, 2, 2, 5, -3, 0, -1)));
      }
    
      public void testEncloseAll_empty() {
        assertThrows(NoSuchElementException.class, () -> Range.encloseAll(ImmutableSet.<Integer>of()));
      }
    
      public void testEncloseAll_nullValue() {
        List<@Nullable Integer> nullFirst = Lists.newArrayList(null, 0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
Back to top