- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for yes (0.21 sec)
-
guava-tests/test/com/google/common/base/OptionalTest.java
} public void testIsPresent_no() { assertFalse(Optional.absent().isPresent()); } @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional public void testIsPresent_yes() { assertTrue(Optional.of("training").isPresent()); } public void testGet_absent() { Optional<String> optional = Optional.absent(); try { optional.get(); fail();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMapEntry.java
* a bucket in another map. */ boolean isReusable() { return true; } static class NonTerminalImmutableMapEntry<K, V> extends ImmutableMapEntry<K, V> { /* * Yes, we sometimes set nextInKeyBucket to null, even for this "non-terminal" entry. We don't * do that with a plain NonTerminalImmutableMapEntry, but we do it with the BiMap-specific
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 4.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/OptionalTest.java
} public void testIsPresent_no() { assertFalse(Optional.absent().isPresent()); } @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional public void testIsPresent_yes() { assertTrue(Optional.of("training").isPresent()); } public void testGet_absent() { Optional<String> optional = Optional.absent(); try { optional.get(); fail();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 10.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
} public void test_contains_null_set_yes() { Iterable<@Nullable String> set = Sets.newHashSet("a", null, "b"); assertTrue(Iterables.contains(set, null)); } public void test_contains_null_set_no() { Iterable<String> set = Sets.newHashSet("a", "b"); assertFalse(Iterables.contains(set, null)); } public void test_contains_null_iterable_yes() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 47.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
} public void test_contains_null_set_yes() { Iterable<@Nullable String> set = Sets.newHashSet("a", null, "b"); assertTrue(Iterables.contains(set, null)); } public void test_contains_null_set_no() { Iterable<String> set = Sets.newHashSet("a", "b"); assertFalse(Iterables.contains(set, null)); } public void test_contains_null_iterable_yes() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 46K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
} public void test_contains_nonnull_yes() { Iterator<@Nullable String> set = Arrays.<@Nullable String>asList("a", null, "b").iterator(); assertTrue(Iterators.contains(set, "b")); } public void test_contains_nonnull_no() { Iterator<String> set = asList("a", "b").iterator(); assertFalse(Iterators.contains(set, "c")); } public void test_contains_null_yes() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 55.7K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedBytes.java
Class<?> theClass = Class.forName(UNSAFE_COMPARATOR_NAME); // requireNonNull is safe because the class is an enum. Object[] constants = requireNonNull(theClass.getEnumConstants()); // yes, UnsafeComparator does implement Comparator<byte[]> @SuppressWarnings("unchecked") Comparator<byte[]> comparator = (Comparator<byte[]>) constants[0]; return comparator;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 18.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
@Override public void oneDeclared() throws SomeCheckedException { try { methodThatDoesntThrowAnything(); } catch (Throwable t) { // yes, this block is never reached, but for purposes of illustration // we're keeping it the same in each test Throwables.propagateIfPossible(t, SomeCheckedException.class);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 23.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
@Override public void oneDeclared() throws SomeCheckedException { try { methodThatDoesntThrowAnything(); } catch (Throwable t) { // yes, this block is never reached, but for purposes of illustration // we're keeping it the same in each test Throwables.propagateIfPossible(t, SomeCheckedException.class);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 23.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
} public void test_contains_nonnull_yes() { Iterator<@Nullable String> set = Arrays.<@Nullable String>asList("a", null, "b").iterator(); assertTrue(Iterators.contains(set, "b")); } public void test_contains_nonnull_no() { Iterator<String> set = asList("a", "b").iterator(); assertFalse(Iterators.contains(set, "c")); } public void test_contains_null_yes() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 30 18:43:01 GMT 2024 - 56.5K bytes - Viewed (0)