- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 200 for Immutable (0.05 sec)
-
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 org.jspecify.annotations.NonNull; import org.jspecify.annotations.Nullable; /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
* </ul> * * @since 22.0 */ @GwtCompatible @Immutable public final class ImmutableLongArray implements Serializable { private static final ImmutableLongArray EMPTY = new ImmutableLongArray(new long[0]); /** Returns the empty array. */ public static ImmutableLongArray of() { return EMPTY; } /** Returns an immutable array containing a single value. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 22K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableIntArray.java
* </ul> * * @since 22.0 */ @GwtCompatible @Immutable public final class ImmutableIntArray implements Serializable { private static final ImmutableIntArray EMPTY = new ImmutableIntArray(new int[0]); /** Returns the empty array. */ public static ImmutableIntArray of() { return EMPTY; } /** Returns an immutable array containing a single value. */ public static ImmutableIntArray of(int e0) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 21.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
* mutable objects as elements at all, as many users may expect your "immutable" object to be * <i>deeply</i> immutable. * </ul> * * <h4>Performance notes</h4> * * <ul> * <li>Implementations can be generally assumed to prioritize memory efficiency, then speed of * access, and lastly speed of creation. * <li>The {@code copyOf} methods will sometimes recognize that the actual copy operation is
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultisetsTest.java
assertNotSame(mod, unmod); assertSame(unmod, unmodifiableMultiset(unmod)); ImmutableMultiset<String> immutable = ImmutableMultiset.of("a", "a", "b", "a"); assertSame(immutable, unmodifiableMultiset(immutable)); assertSame(immutable, unmodifiableMultiset((Multiset<String>) immutable)); } public void testHighestCountFirst() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
return construct(e1); } /** * Returns an immutable list containing the given elements, in order. * * @throws NullPointerException if any element is null */ public static <E> ImmutableList<E> of(E e1, E e2) { return construct(e1, e2); } /** * Returns an immutable list containing the given elements, in order. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
} /** * Returns an immutable collection of the values for the given key. If no mappings in the multimap * have the provided key, an empty immutable collection is returned. The values are in the same * order as the parameters used to build this multimap. */ @Override public abstract ImmutableCollection<V> get(K key); /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 28.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java
ValueGraphBuilder.directed().<String, Integer>immutable().addNode("A").build(); assertThat(graph.nodes()).containsExactly("A"); assertThat(graph.edges()).isEmpty(); } @Test public void immutableValueGraphBuilder_putEdgeFromNodes() { ImmutableValueGraph<String, Integer> graph = ValueGraphBuilder.directed() .<String, Integer>immutable() .putEdgeValue("A", "B", 10)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.5K bytes - Viewed (0) -
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. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 29.5K bytes - Viewed (0) -
android/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) { checkEntryNotNull(k1, v1); return new RegularImmutableBiMap<>(new Object[] {k1, v1}, 1); } /** * Returns an immutable map containing the given entries, in order. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 22.2K bytes - Viewed (0)