- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 396 for singleton (0.06 seconds)
-
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 Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 16 12:42:11 GMT 2025 - 51.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ListeningExecutorServiceTest.java
private TimeUnit recordedTimeUnit; private final ListeningExecutorService executorService = new FakeExecutorService(); public void testInvokeAny() throws Exception { Set<Callable<String>> tasks = Collections.singleton(() -> "invokeAny"); String result = executorService.invokeAny(tasks, Duration.ofSeconds(7)); assertThat(result).isEqualTo("invokeAny"); assertThat(recordedTasks).isSameInstanceAs(tasks);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 4.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
return CollectCollectors.flatteningToImmutableSetMultimap(keyFunction, valuesFunction); } /** * Returns the empty multimap. * * <p><b>Performance note:</b> the instance returned is a singleton. */ // Casting is safe because the multimap will never hold any elements. @SuppressWarnings("unchecked") public static <K, V> ImmutableSetMultimap<K, V> of() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 19 22:57:35 GMT 2026 - 26.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 Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 22.7K bytes - Click Count (0) -
fess-crawler-lasta/src/main/resources/crawler/mimetype.xml
<components namespace="fessCrawler"> <include path="crawler/container.xml" /> <component name="mimeTypeHelper" class="org.codelibs.fess.crawler.helper.impl.MimeTypeHelperImpl" instance="singleton"> </component>
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Oct 11 02:16:55 GMT 2015 - 374 bytes - Click Count (0) -
fess-crawler-lasta/src/main/resources/crawler/sitemaps.xml
"http://dbflute.org/meta/lastadi10.dtd"> <components namespace="fessCrawler"> <include path="crawler/container.xml" /> <component name="sitemapsHelper" class="org.codelibs.fess.crawler.helper.SitemapsHelper" instance="singleton"> </component>
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Oct 11 02:16:55 GMT 2015 - 365 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 Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 46.3K bytes - Click Count (0) -
android/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 Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 31.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSortedSet.java
return new RegularImmutableSortedSet<>(ImmutableList.of(), comparator); } } /** * Returns the empty immutable sorted set. * * <p><b>Performance note:</b> the instance returned is a singleton. */ @SuppressWarnings("unchecked") // The natural-ordered empty set supports all types. public static <E> ImmutableSortedSet<E> of() { return (ImmutableSortedSet<E>) RegularImmutableSortedSet.NATURAL_EMPTY_SET;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 39.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Present.java
checkNotNull(supplier); return reference; } @Override public T orNull() { return reference; } @Override public Set<T> asSet() { return Collections.singleton(reference); } @Override public <V> Optional<V> transform(Function<? super T, V> function) { return new Present<>( checkNotNull( function.apply(reference),
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Apr 15 22:14:00 GMT 2025 - 2.5K bytes - Click Count (0)