Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 82 for ImmutableCollection (0.1 seconds)

  1. android/guava/src/com/google/common/collect/ImmutableMultiset.java

    import java.util.stream.Collector;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A {@link Multiset} whose contents will never change, with many other important properties
     * detailed at {@link ImmutableCollection}.
     *
     * <p><b>Grouped iteration.</b> In all current implementations, duplicate elements always appear
     * consecutively when iterating. Elements iterate in order by the <i>first</i> appearance of that
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

    import org.jspecify.annotations.NonNull;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A {@link ClassToInstanceMap} whose contents will never change, with many other important
     * properties detailed at {@link ImmutableCollection}.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @Immutable(containerOf = "B")
    @GwtIncompatible
    // TODO(b/278589132): Remove the redundant "@NonNull" on B once it's no longer required by J2KT.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

     * {@link ImmutableCollection}.
     *
     * @since 2.0
     */
    @GwtCompatible
    @SuppressWarnings("serial") // we're overriding default serialization
    public abstract class ImmutableSet<E> extends ImmutableCollection<E> implements Set<E> {
      static final int SPLITERATOR_CHARACTERISTICS =
          ImmutableCollection.SPLITERATOR_CHARACTERISTICS | Spliterator.DISTINCT;
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Nov 07 16:09:47 GMT 2025
    - 35.3K bytes
    - Click Count (0)
  4. guava/src/com/google/common/base/Joiner.java

         * List, which is _even more likely_ to have size() implemented to be fast and side-effect-free.
         *
         * We could consider recognizing specific other collections as safe (like ImmutableCollection,
         * except ContiguousSet!) or as not worth this optimization (CopyOnWriteArrayList?).
         */
        if (parts instanceof List) {
          int size = ((List<?>) parts).size();
          if (size == 0) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 21K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

    import org.jspecify.annotations.NonNull;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A {@link ClassToInstanceMap} whose contents will never change, with many other important
     * properties detailed at {@link ImmutableCollection}.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @Immutable(containerOf = "B")
    @GwtIncompatible
    // TODO(b/278589132): Remove the redundant "@NonNull" on B once it's no longer required by J2KT.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 7K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableSortedMap.java

      /**
       * Returns an immutable collection of the values in this map, sorted by the ordering of the
       * corresponding keys.
       */
      @Override
      public ImmutableCollection<V> values() {
        return valueList;
      }
    
      @Override
      ImmutableCollection<V> createValues() {
        throw new AssertionError("should never be called");
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 52.1K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableRangeMap.java

    import java.util.stream.Collector;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A {@link RangeMap} whose contents will never change, with many other important properties
     * detailed at {@link ImmutableCollection}.
     *
     * @author Louis Wasserman
     * @since 14.0
     */
    @GwtIncompatible // NavigableMap
    public class ImmutableRangeMap<K extends Comparable<?>, V> implements RangeMap<K, V>, Serializable {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/RegularImmutableBiMap.java

              public Entry<V, K> get(int index) {
                Entry<K, V> entry = entries[index];
                return immutableEntry(entry.getValue(), entry.getKey());
              }
    
              @Override
              ImmutableCollection<Entry<V, K>> delegateCollection() {
                return InverseEntrySet.this;
              }
    
              // redeclare to help optimizers with b/310253115
              @SuppressWarnings("RedundantOverride")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ImmutableListMultimap.java

          Collection<? extends Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries,
          @Nullable Comparator<? super V> valueComparator) {
        if (mapEntries.isEmpty()) {
          return of();
        }
        ImmutableMap.Builder<K, ImmutableList<V>> builder =
            new ImmutableMap.Builder<>(mapEntries.size());
        int size = 0;
    
        for (Entry<K, ImmutableCollection.Builder<V>> entry : mapEntries) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

          Collection<? extends Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries,
          @Nullable Comparator<? super V> valueComparator) {
        if (mapEntries.isEmpty()) {
          return of();
        }
        ImmutableMap.Builder<K, ImmutableList<V>> builder =
            new ImmutableMap.Builder<>(mapEntries.size());
        int size = 0;
    
        for (Entry<K, ImmutableCollection.Builder<V>> entry : mapEntries) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 19.5K bytes
    - Click Count (0)
Back to Top