- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 251 for from (0.84 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
public void testFromFluentFuture() { FluentFuture<String> f = FluentFuture.from(SettableFuture.<String>create()); assertThat(FluentFuture.from(f)).isSameInstanceAs(f); } public void testFromFluentFuturePassingAsNonFluent() { ListenableFuture<String> f = FluentFuture.from(SettableFuture.<String>create()); assertThat(FluentFuture.from(f)).isSameInstanceAs(f); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 5.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/CaseFormatTest.java
public class CaseFormatTest extends TestCase { public void testIdentity() { for (CaseFormat from : CaseFormat.values()) { assertSame(from + " to " + from, "foo", from.to(from, "foo")); for (CaseFormat to : CaseFormat.values()) { assertEquals(from + " to " + to, "", from.to(to, "")); assertEquals(from + " to " + to, " ", from.to(to, " ")); } } } @J2ktIncompatible
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu May 04 09:41:29 GMT 2023 - 8.7K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheLoader.java
* * <p>Since this example doesn't support reloading or bulk loading, if you're able to use lambda * expressions it can be specified even more easily: * * <pre>{@code * CacheLoader<Key, Graph> loader = CacheLoader.from(key -> createExpensiveGraph(key)); * }</pre> * * @author Charles Fry * @since 10.0 */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public abstract class CacheLoader<K, V> {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 19 20:20:14 GMT 2022 - 9.6K bytes - Viewed (0) -
guava/src/com/google/common/cache/Cache.java
* * @since 11.0 */ void put(K key, V value); /** * Copies all of the mappings from the specified map to the cache. The effect of this call is * equivalent to that of calling {@code put(k, v)} on this map once for each mapping from key * {@code k} to value {@code v} in the specified map. The behavior of this operation is undefined
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Sun Aug 07 02:38:22 GMT 2022 - 7.9K bytes - Viewed (1) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetFeature.java
import java.util.Collections; import java.util.Set; /** * Optional features of classes derived from {@link Multiset}. * * @author Louis Wasserman */ @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package? @GwtCompatible public enum MultisetFeature implements Feature<Multiset> { /** * Indicates that elements from {@code Multiset.entrySet()} update to reflect changes in the * backing multiset. */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 1.8K bytes - Viewed (0) -
guava/src/com/google/common/base/SmallCharMatcher.java
this.filter = filter; this.containsZero = containsZero; } private static final int C1 = 0xcc9e2d51; private static final int C2 = 0x1b873593; /* * This method was rewritten in Java from an intermediate step of the Murmur hash function in * http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp, which contained the * following header: *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 4.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/NetworkBuilder.java
* constructed based on an existing {@code Network} using {@link #from(Network)}. * @param <E> The most general edge type this builder will support. This is normally {@code Object} * unless it is constrained by using a method like {@link #edgeOrder}, or the builder is * constructed based on an existing {@code Network} using {@link #from(Network)}. * @since 20.0 */ @Beta @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Jun 03 01:21:31 GMT 2022 - 7.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java
* and {@code scheduleWithFixedDelay} are not supported by this class and will throw an * UnsupportedOperationException. * * <p>The implementation deviates from the {@code ExecutorService} specification with regards to * the {@code shutdownNow} method. First, "best-effort" with regards to canceling running tasks is
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri May 26 22:04:00 GMT 2023 - 6.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ConverterTest.java
Converter<String, String> composedConverter = converterA.andThen(reverseConverter); SerializableTester.reserializeAndAssert(composedConverter); } public void testSerialization_from() { Converter<String, String> dumb = Converter.from(toStringFunction(), toStringFunction()); SerializableTester.reserializeAndAssert(dumb); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 06 17:02:33 GMT 2023 - 7.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
* * - Under Java 9+, createTempDir() succeeds because it can look up the *real* username, rather * than relying on the one from the system property. * * - Under Java 8, createTempDir() fails because it falls back to the bogus username from the * system property. */ String save = System.getProperty("user.name");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 06 17:11:11 GMT 2023 - 4.3K bytes - Viewed (0)