- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 74 for Sample (0.17 sec)
-
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
*/ private @Nullable Object generate(TypeToken<?> type) { Class<?> rawType = type.getRawType(); List<Object> samples = sampleInstances.get(rawType); Object sample = pickInstance(samples, null); if (sample != null) { return sample; } if (rawType.isEnum()) { return pickInstance(rawType.getEnumConstants(), null); } if (type.isArray()) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 28K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
*/ private @Nullable Object generate(TypeToken<?> type) { Class<?> rawType = type.getRawType(); List<Object> samples = sampleInstances.get(rawType); Object sample = pickInstance(samples, null); if (sample != null) { return sample; } if (rawType.isEnum()) { return pickInstance(rawType.getEnumConstants(), null); } if (type.isArray()) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 28.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
} } public void testCopyOf_concurrentlyMutating() { List<String> sample = Lists.newArrayList("a", "b", "c"); for (int delta : new int[] {-1, 0, 1}) { for (int i = 0; i < sample.size(); i++) { Collection<String> misleading = Helpers.misleadingSizeCollection(delta); List<String> expected = sample.subList(0, i); misleading.addAll(expected);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 23.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
} } public void testCopyOf_concurrentlyMutating() { List<String> sample = Lists.newArrayList("a", "b", "c"); for (int delta : new int[] {-1, 0, 1}) { for (int i = 0; i < sample.size(); i++) { Collection<String> misleading = Helpers.misleadingSizeCollection(delta); List<String> expected = sample.subList(0, i); misleading.addAll(expected);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 23.3K bytes - Viewed (0) -
guava/src/com/google/common/base/Throwables.java
*/ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public final class Throwables { private Throwables() {} /** * Throws {@code throwable} if it is an instance of {@code declaredType}. Example usage: * * <pre> * for (Foo foo : foos) { * try { * foo.bar(); * } catch (BarException | RuntimeException | Error t) { * failure = t; * } * }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Mar 06 15:38:58 GMT 2024 - 20.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Throwables.java
*/ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public final class Throwables { private Throwables() {} /** * Throws {@code throwable} if it is an instance of {@code declaredType}. Example usage: * * <pre> * for (Foo foo : foos) { * try { * foo.bar(); * } catch (BarException | RuntimeException | Error t) { * failure = t; * } * }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Mar 06 15:38:58 GMT 2024 - 20.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java
* @author Craig Berry */ @GwtCompatible(emulated = true) public final class InternetDomainNameTest extends TestCase { private static final InternetDomainName UNICODE_EXAMPLE = InternetDomainName.from("j\u00f8rpeland.no"); private static final InternetDomainName PUNYCODE_EXAMPLE = InternetDomainName.from("xn--jrpeland-54a.no"); /** The Greek letter delta, used in unicode testing. */ private static final String DELTA = "\u0394";
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Mar 05 13:16:00 GMT 2024 - 17.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Comparators.java
* until a nonzero result is found; imposes "dictionary order." If the end of one iterable is * reached, but not the other, the shorter iterable is considered to be less than the longer one. * For example, a lexicographical natural ordering over integers considers {@code [] < [1] < [1, * 1] < [1, 2] < [2]}. * * <p>Note that {@code Collections.reverseOrder(lexicographical(comparator))} is not equivalent to
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 10.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingMapEntry.java
* href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. * * <p><b>Warning:</b> The methods of {@code ForwardingMapEntry} forward <i>indiscriminately</i> to * the methods of the delegate. For example, overriding {@link #getValue} alone <i>will not</i> * change the behavior of {@link #equals}, which can lead to unexpected behavior. In this case, you
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Mar 19 19:28:11 GMT 2024 - 4.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
* java.util.stream} Javadoc), that order is preserved, but entries are <a * href="ImmutableMultimap.html#iteration">grouped by key</a>. * * <p>Example: * * <pre>{@code * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP = * Stream.of("banana", "apple", "carrot", "asparagus", "cherry") * .collect(toImmutableSetMultimap(str -> str.charAt(0), str -> str.substring(1))); * * // is equivalent to
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 23.6K bytes - Viewed (0)