- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for getNullLocation (0.08 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java
* @return an array of the proper size with {@code null} as the key of the middle element. */ protected Entry<K, V>[] createArrayWithNullKey() { Entry<K, V>[] array = createSamplesArray(); int nullKeyLocation = getNullLocation(); Entry<K, V> oldEntry = array[nullKeyLocation]; array[nullKeyLocation] = mapEntry(null, oldEntry.getValue()); return array; } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java
assertEquals( "put(present, value) should return the associated value", getValueForNullKey(), put(newEntry)); Entry<K, V>[] expected = createArrayWithNullKey(); expected[getNullLocation()] = newEntry; expectContents(expected); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS) public void testPut_nullKeyUnsupported() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java
@CollectionSize.Require(absent = ZERO) public void testFind_nullContained() { initCollectionWithNullElement(); assertEquals( getMethodName() + "(null) should return " + getNullLocation(), getNullLocation(), find(null)); } public void testFind_wrongType() { try { assertEquals( getMethodName() + "(wrongType) should return -1 or throw", -1, find(WrongType.VALUE));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
for (int i = 0; i < getNullLocation(); i++) { entries.next(); } return entries.next(); } /** * @return an array of the proper size with {@code null} as the value of the middle element. */ protected Entry<K, V>[] createArrayWithNullValue() { Entry<K, V>[] array = createSamplesArray(); int nullValueLocation = getNullLocation();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 7.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java
@CollectionSize.Require(absent = ZERO) public void testFind_nullContained() { initCollectionWithNullElement(); assertEquals( getMethodName() + "(null) should return " + getNullLocation(), getNullLocation(), find(null)); } public void testFind_wrongType() { try { assertEquals( getMethodName() + "(wrongType) should return -1 or throw", -1, find(WrongType.VALUE));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
for (int i = 0; i < getNullLocation(); i++) { entries.next(); } return entries.next(); } /** * @return an array of the proper size with {@code null} as the value of the middle element. */ protected Entry<K, V>[] createArrayWithNullValue() { Entry<K, V>[] array = createSamplesArray(); int nullValueLocation = getNullLocation();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 7.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java
assertEquals( "put(present, value) should return the associated value", getValueForNullKey(), put(newEntry)); Entry<K, V>[] expected = createArrayWithNullKey(); expected[getNullLocation()] = newEntry; expectContents(expected); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS) public void testPut_nullKeyUnsupported() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java
assertNull(k); assertEquals(getValueForNullKey(), v); return v3(); })); Entry<K, V>[] expected = createArrayWithNullKey(); expected[getNullLocation()] = entry(null, v3()); expectContents(expected); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS}) public void testComputeIfPresent_nullKeySupportedAbsent() { assertNull(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java
assertNull(k); assertEquals(getValueForNullKey(), v); return v3(); })); Entry<K, V>[] expected = createArrayWithNullKey(); expected[getNullLocation()] = entry(null, v3()); expectContents(expected); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS}) public void testComputeIfPresent_nullKeySupportedAbsent() { assertNull(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 6.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
@MapFeature.Require({ALLOWS_NULL_KEYS, ALLOWS_NULL_VALUES}) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullKeyAndValueSupported() { Entry<K, V>[] entries = createSamplesArray(); entries[getNullLocation()] = entry(null, null); resetMap(entries); expectContents(entries); } @MapFeature.Require(value = ALLOWS_NULL_KEYS, absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE})
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.6K bytes - Viewed (0)