- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 351 for Singleton (0.1 seconds)
-
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
(Multiset<E> multiset) -> copyOfSortedEntries(comparator, multiset.entrySet())); } /** * 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; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 29.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
CollectionFeature.ALLOWS_NULL_QUERIES) .createTestSuite()); suite.addTestSuite(ImmutableSortedSetTest.class); return suite; } // enum singleton pattern private enum StringLengthComparator implements Comparator<String> { INSTANCE; @Override public int compare(String a, String b) { return a.length() - b.length(); } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 45.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableList.java
* Collections#emptyList}, and is preferable mainly for consistency and maintainability of your * code. * * <p><b>Performance note:</b> the instance returned is a singleton. */ // Casting to any type is safe because the list will never hold any elements. @SuppressWarnings("unchecked") public static <E> ImmutableList<E> of() { return (ImmutableList<E>) EMPTY; } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 30.6K bytes - Click Count (0) -
guava/src/com/google/common/io/ByteStreams.java
/** * Returns an {@link OutputStream} that simply discards written bytes. * * <p><b>Java 11+ users:</b> use {@link OutputStream#nullOutputStream()} instead. Note that the * {@link ByteStreams} method returns a singleton stream whose {@code close} method has no effect, * while the {@link OutputStream} method returns a new instance whose {@code write} methods throw * if called on a closed stream. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 31.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
multiset.add(checkNotNull(elementFunction.apply(t)), countFunction.applyAsInt(t)); } /** * 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; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 35.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
CollectionFeature.ALLOWS_NULL_QUERIES) .createTestSuite()); suite.addTestSuite(ImmutableSortedSetTest.class); return suite; } // enum singleton pattern private enum StringLengthComparator implements Comparator<String> { INSTANCE; @Override public int compare(String a, String b) { return a.length() - b.length(); } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 46.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MapMakerInternalMap.java
* specified by the given {@code builder}. The returned {@link MapMakerInternalMap} will be * optimized to saved memory. Since {@link MapMaker.Dummy} is a singleton, we don't need to store * any values at all. Because of this optimization, {@code build.getValueStrength()} must be * {@link Strength#STRONG}. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 89.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
} } /** * Returns the empty sorted map. * * <p><b>Performance note:</b> the instance returned is a singleton. */ @SuppressWarnings("unchecked") // unsafe, comparator() returns a comparator on the specified type // TODO(kevinb): evaluate whether or not of().comparator() should return nullCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 52.9K bytes - Click Count (0) -
docs/changelogs/changelog_3x.md
`com.squareup.okhttp` package should upgrade to the `okhttp3` package. Libraries that depend on OkHttp should upgrade quickly to prevent applications from being stuck on the old version. * **There is no longer a global singleton connection pool.** In OkHttp 2.x, all `OkHttpClient` instances shared a common connection pool by default. In OkHttp 3.x, each new `OkHttpClient` gets its own private connection pool.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 14:55:54 GMT 2022 - 50.8K bytes - Click Count (0) -
guava/src/com/google/common/cache/LocalCache.java
@Override public @Nullable Object waitForValue() { return null; } @Override public void notifyNewValue(Object newValue) {} }; /** Singleton placeholder that indicates a value is being loaded. */ @SuppressWarnings("unchecked") // impl never uses a parameter or returns any non-null value static <K, V> ValueReference<K, V> unset() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 11 19:35:11 GMT 2025 - 148.9K bytes - Click Count (0)