- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 351 for Singleton (0.08 seconds)
-
android/guava/src/com/google/common/collect/ImmutableCollection.java
* * <p>Expressing the immutability guarantee directly in the type that user code references is a * powerful advantage. Although Java offers certain immutable collection factory methods, such as * {@link Collections#singleton(Object)} and <a * href="https://docs.oracle.com/javase/9/docs/api/java/util/Set.html#immutable">{@code Set.of}</a>, * we recommend using <i>these</i> classes instead for this reason (as well as for consistency). *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
* * Use `new OkHttpClient()` to create a shared instance with the default settings: * * ```java * // The singleton HTTP client. * public final OkHttpClient client = new OkHttpClient(); * ``` * * Or use `new OkHttpClient.Builder()` to create a shared instance with custom settings: * * ```java * // The singleton HTTP client. * public final OkHttpClient client = new OkHttpClient.Builder()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 51.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterators.java
@SuppressWarnings("unchecked") static <T extends @Nullable Object> UnmodifiableListIterator<T> emptyListIterator() { return (UnmodifiableListIterator<T>) ArrayItr.EMPTY; } /** * This is an enum singleton rather than an anonymous class so ProGuard can figure out it's only * referenced by emptyModifiableIterator(). */ private enum EmptyModifiableIterator implements Iterator<Object> { INSTANCE; @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 16 12:42:11 GMT 2025 - 51.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableRangeSet.java
return CollectCollectors.toImmutableRangeSet(); } /** * Returns an empty immutable range set. * * <p><b>Performance note:</b> the instance returned is a singleton. */ @SuppressWarnings("unchecked") public static <C extends Comparable> ImmutableRangeSet<C> of() { return (ImmutableRangeSet<C>) EMPTY; } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
@Empty static <C extends Comparable<?>> Range<C> generateRange() { return Range.all(); } @Generates static <C extends Comparable<?>> Range<C> generateRange(C freshElement) { return Range.singleton(freshElement); } @Generates static <E> Iterable<E> generateIterable(@Nullable E freshElement) { return generateList(freshElement); } @Generates
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 28.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
assertEvalsToFalse(nasty); Predicate<? super Integer> stillNasty = SerializableTester.reserializeAndAssert(nasty); assertEvalsToFalse(stillNasty); } // enum singleton pattern private enum TrimStringFunction implements Function<String, String> { INSTANCE; @Override public String apply(String string) { return whitespace().trimFrom(string); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableBiMap.java
return CollectCollectors.toImmutableBiMap(keyFunction, valueFunction); } /** * Returns the empty bimap. * * <p><b>Performance note:</b> the instance returned is a singleton. */ // Casting to any type is safe because the set will never hold any elements. @SuppressWarnings("unchecked") public static <K, V> ImmutableBiMap<K, V> of() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 22.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
@GwtCompatible public abstract class ImmutableMultimap<K, V> extends BaseImmutableMultimap<K, V> implements Serializable { /** * Returns an empty multimap. * * <p><b>Performance note:</b> the instance returned is a singleton. */ public static <K, V> ImmutableMultimap<K, V> of() { return ImmutableListMultimap.of(); } /** Returns an immutable multimap containing a single entry. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 28.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
@GwtCompatible public abstract class ImmutableMultimap<K, V> extends BaseImmutableMultimap<K, V> implements Serializable { /** * Returns an empty multimap. * * <p><b>Performance note:</b> the instance returned is a singleton. */ public static <K, V> ImmutableMultimap<K, V> of() { return ImmutableListMultimap.of(); } /** Returns an immutable multimap containing a single entry. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 27.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
@Empty static <C extends Comparable<?>> Range<C> generateRange() { return Range.all(); } @Generates static <C extends Comparable<?>> Range<C> generateRange(C freshElement) { return Range.singleton(freshElement); } @Generates static <E> Iterable<E> generateIterable(@Nullable E freshElement) { return generateList(freshElement); } @Generates
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 28.7K bytes - Click Count (0)