- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 302 for ABSENT (0.2 sec)
-
guava/src/com/google/common/base/Absent.java
@GwtCompatible @ElementTypesAreNonnullByDefault final class Absent<T> extends Optional<T> { static final Absent<Object> INSTANCE = new Absent<>(); @SuppressWarnings("unchecked") // implementation is "fully variant" static <T> Optional<T> withType() { return (Optional<T>) INSTANCE; } private Absent() {} @Override public boolean isPresent() { return false; }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Absent.java
@GwtCompatible @ElementTypesAreNonnullByDefault final class Absent<T> extends Optional<T> { static final Absent<Object> INSTANCE = new Absent<>(); @SuppressWarnings("unchecked") // implementation is "fully variant" static <T> Optional<T> withType() { return (Optional<T>) INSTANCE; } private Absent() {} @Override public boolean isPresent() { return false; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 2.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java
@CollectionSize.Require(absent = ZERO) public void testReplaceEntry_presentNullValueUnsupported() { try { getMap().replace(k0(), v0(), null); fail("Expected NullPointerException"); } catch (NullPointerException expected) { } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/OptionalTest.java
Set<Object> absentAsSet = Optional.absent().asSet(); try { absentAsSet.add("foo"); fail(); } catch (UnsupportedOperationException expected) { } } public void testTransform_absent() { assertEquals(Optional.absent(), Optional.absent().transform(Functions.identity())); assertEquals(Optional.absent(), Optional.absent().transform(Functions.toStringFunction())); }
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-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
} @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES) public void testRemoveNullValueForbidden() { try { multimap().remove(k0(), null); fail("Expected NullPointerException"); } catch (NullPointerException expected) { // success } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_KEY_QUERIES)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 6.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
expectUnchanged(); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(ZERO) public void testRetainAll_emptyPreviouslyEmptyUnsupported() { expectReturnsFalseOrThrows(empty); expectUnchanged(); } @CollectionFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRetainAll_emptyPreviouslyNonEmpty() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashBiMap.java
nextInBucketVToK[src] = ABSENT; } @Override public void clear() { Arrays.fill(keys, 0, size, null); Arrays.fill(values, 0, size, null); Arrays.fill(hashTableKToV, ABSENT); Arrays.fill(hashTableVToK, ABSENT); Arrays.fill(nextInBucketKToV, 0, size, ABSENT); Arrays.fill(nextInBucketVToK, 0, size, ABSENT); Arrays.fill(prevInInsertionOrder, 0, size, ABSENT);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Mar 06 16:06:58 GMT 2023 - 36.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java
@MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testReplace_presentNullValueUnsupported() { try { getMap().replace(k0(), null); fail("Expected NullPointerException"); } catch (NullPointerException expected) { } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
} @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutAllNullValueSingle_unsupported() { multimap().putAll(k1(), Lists.newArrayList((V) null)); expectUnchanged(); } // In principle, it would be nice to apply these two tests to keys with existing values, too. @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 7.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java
}); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testComputeIfPresent_unsupportedPresent() { try { getMap().computeIfPresent(k0(), (k, v) -> v3()); fail("Expected UnsupportedOperationException");
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 5.8K bytes - Viewed (0)