- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,119 for nulls (0.01 sec)
-
android/guava/src/com/google/common/collect/ImmutableList.java
return asImmutableList(array); } /** Views the array as an immutable list. Checks for nulls; does not copy. */ private static <E> ImmutableList<E> construct(Object... elements) { return asImmutableList(checkElementsNotNull(elements)); } /** * Views the array as an immutable list. Does not check for nulls; does not copy. * * <p>The array must be internally created. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java
assertTrue("add(null) should return true", collection.add(null)); expectAdded((E) null); } @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES) public void testAdd_nullUnsupported() { assertThrows(NullPointerException.class, () -> collection.add(null)); expectUnchanged(); expectNullMissingWhenNullUnsupported("Should not contain null after unsupported add(null)"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java
assertTrue("add(null) should return true", collection.add(null)); expectAdded((E) null); } @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES) public void testAdd_nullUnsupported() { assertThrows(NullPointerException.class, () -> collection.add(null)); expectUnchanged(); expectNullMissingWhenNullUnsupported("Should not contain null after unsupported add(null)"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeVisitor.java
/** * Visits the given types. Null types are ignored. This allows subclasses to call {@code * visit(parameterizedType.getOwnerType())} safely without having to check nulls. */ public final void visit(@Nullable Type... types) { for (Type type : types) { if (type == null || !visited.add(type)) { // null owner type, or already visited; continue; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 3.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
for (Object element : contents) { if (element == null) { throw new NullPointerException(); } } } } @Override public int size() { return contents.length; } @Override public boolean contains(@Nullable Object object) { if (!allowNulls) { // behave badly if (object == null) { throw new NullPointerException(); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
} return transform(fromList, removeFirst); } }) .named("Lists.transform, random access, no nulls") .withFeatures( CollectionSize.ANY, ListFeature.REMOVE_OPERATIONS, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java
initThreeCopies(); assertSetCountDecreasingFailure(e0(), 1); } // setCount with nulls: @CollectionSize.Require(absent = ZERO) @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES}) public void testSetCount_removeNull_nullSupported() { initCollectionWithNullElement(); assertSetCount(null, 0); } @CollectionFeature.Require( value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES},
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SortedSetTestSuiteBuilder.java
features.add(CollectionFeature.SUBSET_VIEW); if (features.remove(CollectionFeature.ALLOWS_NULL_VALUES)) { // the null value might be out of bounds, so we can't always construct a subset with nulls features.add(CollectionFeature.ALLOWS_NULL_QUERIES); // but add null might still be supported if it happens to be within range of the subset suppressing.add(CollectionAddTester.getAddNullUnsupportedMethod());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SortedSetTestSuiteBuilder.java
features.add(CollectionFeature.SUBSET_VIEW); if (features.remove(CollectionFeature.ALLOWS_NULL_VALUES)) { // the null value might be out of bounds, so we can't always construct a subset with nulls features.add(CollectionFeature.ALLOWS_NULL_QUERIES); // but add null might still be supported if it happens to be within range of the subset suppressing.add(CollectionAddTester.getAddNullUnsupportedMethod());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0)