- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for createSamplesArray (0.26 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java
return multimap; } /** * @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] = Helpers.mapEntry(null, oldEntry.getValue()); return array; } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java
public void testRetainAll_duplicatesKept() { E[] array = createSamplesArray(); array[1] = e0(); collection = getSubjectGenerator().create(array); assertFalse( "containsDuplicates.retainAll(superset) should return false", collection.retainAll(MinimalCollection.of(createSamplesArray()))); expectContents(array); } @CollectionFeature.Require(SUPPORTS_REMOVE)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 2.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java
} @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE}) public void testCreateWithDuplicates_nonNullDuplicatesNotRejected() { E[] array = createSamplesArray(); array[1] = e0(); collection = getSubjectGenerator().create(array); List<E> expectedWithDuplicateRemoved = Arrays.asList(array).subList(1, getNumElements());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.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] = entry(null, oldEntry.getValue()); return array; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 7.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java
resetContainer(); } /** @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();
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java
} @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE}) public void testCreateWithDuplicates_nonNullDuplicatesNotRejected() { E[] array = createSamplesArray(); array[1] = e0(); collection = getSubjectGenerator().create(array); List<E> expectedWithDuplicateRemoved = Arrays.asList(array).subList(1, getNumElements());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java
@CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE}) public void testCreateWithDuplicates() { E[] array = createSamplesArray(); array[1] = e0(); collection = getSubjectGenerator().create(array); expectContents(array); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 1.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java
} public void testContainsAll_sameElements() { assertTrue( "containsAll(sameElements) should return true", collection.containsAll(MinimalCollection.of(createSamplesArray()))); } @SuppressWarnings("ModifyingCollectionWithItself") public void testContainsAll_self() { assertTrue("containsAll(this) should return true", collection.containsAll(collection)); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 3.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java
public void testRetainAll_duplicatesKept() { E[] array = createSamplesArray(); array[1] = e0(); collection = getSubjectGenerator().create(array); assertFalse( "containsDuplicates.retainAll(superset) should return false", collection.retainAll(MinimalCollection.of(createSamplesArray()))); expectContents(array); } @CollectionFeature.Require(SUPPORTS_REMOVE)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 2.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java
return "lastIndexOf"; } @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE}) public void testLastIndexOf_duplicate() { E[] array = createSamplesArray(); array[getNumElements() / 2] = e0(); collection = getSubjectGenerator().create(array); assertEquals( "lastIndexOf(duplicate) should return index of last occurrence", getNumElements() / 2,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 2.1K bytes - Viewed (0)