Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 238 for immutable (0.21 sec)

  1. guava/src/com/google/common/collect/ImmutableBiMap.java

        return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY;
      }
    
      /** Returns an immutable bimap containing a single entry. */
      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
        return new SingletonImmutableBiMap<>(k1, v1);
      }
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys or values are added
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java

        // If add is supported, verify that IMMUTABLE is not reported.
        synchronized (collection) { // for Collections.synchronized
          assertFalse(collection.spliterator().hasCharacteristics(Spliterator.IMMUTABLE));
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testSpliteratorNotImmutable_CollectionAllowsRemove() {
        // If remove is supported, verify that IMMUTABLE is not reported.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      }
    
      /**
       * Returns the empty immutable sorted multiset.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSortedMultiset<E> of() {
        return (ImmutableSortedMultiset) RegularImmutableSortedMultiset.NATURAL_EMPTY_MULTISET;
      }
    
      /** Returns an immutable sorted multiset containing a single element. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableTable.java

      }
    
      /**
       * Returns an empty immutable table.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      public static <R, C, V> ImmutableTable<R, C, V> of() {
        return (ImmutableTable<R, C, V>) SparseImmutableTable.EMPTY;
      }
    
      /** Returns an immutable table containing a single cell. */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 17.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

    import com.google.common.primitives.Primitives;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.DoNotCall;
    import com.google.errorprone.annotations.Immutable;
    import java.io.Serializable;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MultimapsTest.java

        ImmutableListMultimap<String, Integer> immutable =
            ImmutableListMultimap.of("a", 1, "b", 2, "a", 3);
        assertSame(immutable, Multimaps.unmodifiableListMultimap(immutable));
        assertSame(
            immutable, Multimaps.unmodifiableListMultimap((ListMultimap<String, Integer>) immutable));
      }
    
      @SuppressWarnings("deprecation")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

        yStats.addAll(values.yStats());
      }
    
      /** Returns an immutable snapshot of the current statistics. */
      public PairedStats snapshot() {
        return new PairedStats(xStats.snapshot(), yStats.snapshot(), sumOfProductsOfDeltas);
      }
    
      /** Returns the number of pairs in the dataset. */
      public long count() {
        return xStats.count();
      }
    
      /** Returns an immutable snapshot of the statistics on the {@code x} values alone. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/PackageSanityTests.java

          ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableGraph<String> IMMUTABLE_GRAPH_A =
          GraphBuilder.directed().<String>immutable().addNode("A").build();
      private static final ImmutableGraph<String> IMMUTABLE_GRAPH_B =
          GraphBuilder.directed().<String>immutable().addNode("B").build();
    
      private static final NetworkBuilder<?, ?> NETWORK_BUILDER_A =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 19:24:25 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/SipHashFunction.java

    import com.google.errorprone.annotations.Immutable;
    import java.io.Serializable;
    import java.nio.ByteBuffer;
    import javax.annotation.CheckForNull;
    
    /**
     * {@link HashFunction} implementation of SipHash-c-d.
     *
     * @author Kurt Alfred Kluever
     * @author Jean-Philippe Aumasson
     * @author Daniel J. Bernstein
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.Immutable;
    import java.io.Serializable;
    import java.util.AbstractList;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.List;
    import java.util.RandomAccess;
    import javax.annotation.CheckForNull;
    
    /**
     * An immutable array of {@code int} values, with an API resembling {@link List}.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top