- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for substitutor (0.22 sec)
-
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
TypeToken<Map<String, Integer>> reserialized = reserialize(new TypeToken<Map<String, Integer>>() {}); assertEquals(reserialized, substitute(reserialized, String.class)); } private static <T, X> TypeToken<T> substitute(TypeToken<T> type, Class<X> arg) { return type.where(new TypeParameter<X>() {}, arg); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
/** Returns the represented type. */ public final Type getType() { return runtimeType; } /** * Returns a new {@code TypeToken} where type variables represented by {@code typeParam} are * substituted by {@code typeArg}. For example, it can be used to construct {@code Map<K, V>} for * any {@code K} and {@code V} type: * * <pre>{@code * static <K, V> TypeToken<Map<K, V>> mapOf(
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jun 26 21:02:13 GMT 2023 - 53.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Verify.java
* errorMessageArgs[0]}, etc. Unmatched arguments will be appended to the formatted message in * square braces. Unmatched placeholders will be left as-is. * @param errorMessageArgs the arguments to be substituted into the message template. Arguments * are converted to strings using {@link String#valueOf(Object)}. * @throws VerifyException if {@code expression} is {@code false}
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 18.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertNull(map.put(one, two)); assertThat(map).containsEntry(three, one); assertThat(map).containsEntry(one, two); // TODO(cgruber): Confirm with fry@ that this is a reasonable substitute. // Set<Entry<Object, Object>> entries = map.entrySet(); // assertThat(entries).containsExactly( // Maps.immutableEntry(three, one), Maps.immutableEntry(one, two)); // Set<Object> keys = map.keySet();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 12.3K bytes - Viewed (0) -
guava/src/com/google/common/base/Preconditions.java
* errorMessageArgs[0]}, etc. Unmatched arguments will be appended to the formatted message in * square braces. Unmatched placeholders will be left as-is. * @param errorMessageArgs the arguments to be substituted into the message template. Arguments * are converted to strings using {@link String#valueOf(Object)}. * @throws IllegalArgumentException if {@code expression} is false */ public static void checkArgument(
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Feb 14 15:46:55 GMT 2024 - 52.9K bytes - Viewed (0) -
guava/src/com/google/common/base/Ascii.java
* physical end of the medium.) * * @since 8.0 */ public static final byte EM = 25; /** * Substitute: A character that may be substituted for a character which is determined to be * invalid or in error. * * @since 8.0 */ public static final byte SUB = 26; /**
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Jul 19 15:43:07 GMT 2021 - 21.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Stopwatch.java
* <ul> * <li>The raw {@code long} values returned by {@code nanoTime} are meaningless and unsafe to use * in any other way than how {@code Stopwatch} uses them. * <li>An alternative source of nanosecond ticks can be substituted, for example for testing or * performance reasons, without affecting most of your code. * </ul> * * <p>The one downside of {@code Stopwatch} relative to {@link System#nanoTime()} is that {@code
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Nov 15 21:38:09 GMT 2022 - 8.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ServiceManager.java
ImmutableList<Service> copy = ImmutableList.copyOf(services); if (copy.isEmpty()) { // Having no services causes the manager to behave strangely. Notably, listeners are never // fired. To avoid this we substitute a placeholder service. logger .get() .log( Level.WARNING, "ServiceManager configured with no services. Is your application configured"
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Dec 13 19:45:20 GMT 2023 - 30.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertNull(map.put(one, two)); assertThat(map).containsEntry(three, one); assertThat(map).containsEntry(one, two); // TODO(cgruber): Confirm with fry@ that this is a reasonable substitute. // Set<Entry<Object, Object>> entries = map.entrySet(); // assertThat(entries).containsExactly( // Maps.immutableEntry(three, one), Maps.immutableEntry(one, two)); // Set<Object> keys = map.keySet();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 12.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
TypeToken<Map<String, Integer>> reserialized = reserialize(new TypeToken<Map<String, Integer>>() {}); assertEquals(reserialized, substitute(reserialized, String.class)); } private static <T, X> TypeToken<T> substitute(TypeToken<T> type, Class<X> arg) { return type.where(new TypeParameter<X>() {}, arg); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0)