- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 1,261 for elements (0.05 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java
public void testSet_replacingNull() { E[] elements = createSamplesArray(); int i = aValidIndex(); elements[i] = null; collection = getSubjectGenerator().create(elements); doTestSet(e3()); } private void doTestSet(E newValue) { int index = aValidIndex(); E initialValue = getList().get(index); assertEquals( "set(i, x) should return the old element at position i.", initialValue,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ForwardingCollectionTest.java
new TestStringCollectionGenerator() { @Override protected Collection<String> create(String[] elements) { return new StandardImplForwardingCollection<>( new LinkedList<>(asList(elements))); } }) .named("ForwardingCollection[LinkedList] with standard implementations") .withFeatures(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 4.8K bytes - Click Count (1) -
android/guava-testlib/src/com/google/common/collect/testing/TestSortedMapGenerator.java
import org.jspecify.annotations.Nullable; /** * Creates sorted maps, containing sample elements, to be tested. * * @author Louis Wasserman */ @GwtCompatible @NullMarked public interface TestSortedMapGenerator<K extends @Nullable Object, V extends @Nullable Object> extends TestMapGenerator<K, V> { @Override SortedMap<K, V> create(Object... elements); /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/TreeMultisetTest.java
ms.add("b", 2); SortedSet<String> elementSet = ms.elementSet(); assertThat(elementSet.first()).isEqualTo("a"); assertThat(elementSet.last()).isEqualTo("c"); assertEquals(Ordering.natural(), elementSet.comparator()); assertThat(elementSet.headSet("b")).containsExactly("a"); assertThat(elementSet.tailSet("b")).containsExactly("b", "c").inOrder();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 13.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ByFunctionOrdering.java
import com.google.common.base.Function; import java.io.Serializable; import java.util.Objects; import org.jspecify.annotations.Nullable; /** * An ordering that orders elements by applying an order to the result of a function on those * elements. */ @GwtCompatible final class ByFunctionOrdering<F extends @Nullable Object, T extends @Nullable Object> extends Ordering<F> implements Serializable {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 2.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ForwardingQueueTest.java
QueueTestSuiteBuilder.using( new TestStringQueueGenerator() { @Override protected Queue<String> create(String[] elements) { return new StandardImplForwardingQueue<>(new LinkedList<>(asList(elements))); } }) .named("ForwardingQueue[LinkedList] with standard implementations") .withFeatures(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/MinimalSetTest.java
public static Test suite() { return SetTestSuiteBuilder.using( new TestStringSetGenerator() { @Override protected Set<String> create(String[] elements) { return MinimalSet.of(elements); } }) .named("MinimalSet") .withFeatures( CollectionFeature.ALLOWS_NULL_VALUES, CollectionFeature.NONE, CollectionSize.ANY)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 1.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SetsFilterSortedSetTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 1.5K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/ImmutableGraph.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import com.google.errorprone.annotations.Immutable; import com.google.errorprone.annotations.InlineMe; /** * A {@link Graph} whose elements and structural relationships will never change. Instances of this * class may be obtained with {@link #copyOf(Graph)}. * * <p>See the Guava User's Guide's <aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 7.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java
suite.addTest( SetTestSuiteBuilder.using( new TestStringSetGenerator() { @Override protected Set<String> create(String[] elements) { return CompactLinkedHashSet.create(asList(elements)); } }) .named("CompactLinkedHashSet") .withFeatures(allFeatures) .createTestSuite()); return suite;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 3.4K bytes - Click Count (0)