- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for getNullLocation (0.17 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/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) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java
} /** * @return an array of the proper size with {@code null} inserted into the middle element. */ protected E[] createArrayWithNullElement() { E[] array = createSamplesArray(); array[getNullLocation()] = null; return array; } protected void initCollectionWithNullElement() { E[] array = createArrayWithNullElement(); resetContainer(getSubjectGenerator().create(array)); } /**Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 2.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java
} /** * @return an array of the proper size with {@code null} inserted into the middle element. */ protected E[] createArrayWithNullElement() { E[] array = createSamplesArray(); array[getNullLocation()] = null; return array; } protected void initCollectionWithNullElement() { E[] array = createArrayWithNullElement(); resetContainer(getSubjectGenerator().create(array)); } /**Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 2.8K bytes - Viewed (0)