- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 830 for elements (0.03 sec)
-
guava-tests/test/com/google/common/collect/ImmutableListTest.java
public void testBuilderAddArrayHandlesNulls() { @Nullable String[] elements = new @Nullable String[] {"a", null, "b"}; ImmutableList.Builder<String> builder = ImmutableList.builder(); assertThrows(NullPointerException.class, () -> builder.add((String[]) elements)); ImmutableList<String> result = builder.build(); /* * Maybe it rejects all elements, or maybe it adds "a" before failing. * Either way is fine with us.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 23.6K bytes - Viewed (0) -
android/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(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java
protected ListIterator<E> newTargetIterator() { resetCollection(); return getList().listIterator(); } @Override protected void verify(List<E> elements) { expectContents(elements); } }.test(); } public void testListIterator_tooLow() { assertThrows(IndexOutOfBoundsException.class, () -> getList().listIterator(-1)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
*/ @Override <T extends @Nullable Object> ListenableFuture<T> submit( Runnable task, @ParametricNullness T result); /** * {@inheritDoc} * * <p>All elements in the returned list must be {@link ListenableFuture} instances. The easiest * way to obtain a {@code List<ListenableFuture<T>>} from this method is an unchecked (but safe) * cast: * * <pre>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java
public class MultisetReadsTester<E> extends AbstractMultisetTester<E> { @CollectionSize.Require(absent = ZERO) public void testElementSet_contains() { assertTrue( "multiset.elementSet().contains(present) returned false", getMultiset().elementSet().contains(e0())); } @CollectionSize.Require(absent = ZERO) public void testEntrySet_contains() { assertTrue( "multiset.entrySet() didn't contain [present, 1]",
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java
public class MultisetReadsTester<E> extends AbstractMultisetTester<E> { @CollectionSize.Require(absent = ZERO) public void testElementSet_contains() { assertTrue( "multiset.elementSet().contains(present) returned false", getMultiset().elementSet().contains(e0())); } @CollectionSize.Require(absent = ZERO) public void testEntrySet_contains() { assertTrue( "multiset.entrySet() didn't contain [present, 1]",
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4K bytes - Viewed (0) -
api/maven-api-model/src/main/java/org/apache/maven/api/model/InputSource.java
/** * Represents the source of a model input, such as a POM file. * <p> * This class tracks the origin of model elements, including their location in source files * and relationships between imported models. It's used for error reporting and debugging * to help identify where specific model elements came from. * * @since 4.0.0 */ public class InputSource implements Serializable { private final String modelId;
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 3.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
} /** constructor with array is of same size and has all elements */ public void testConstructor2() { AtomicDoubleArray aa = new AtomicDoubleArray(VALUES); assertEquals(VALUES.length, aa.length()); for (int i = 0; i < VALUES.length; i++) { assertBitEquals(VALUES[i], aa.get(i)); } } /** constructor with empty array has size 0 and contains no elements */ public void testConstructorEmptyArray() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 14.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java
public void testHashCode() { int expectedHashCode = 1; for (E element : getOrderedElements()) { expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode()); } assertEquals( "A List's hashCode() should be computed from those of its elements.", expectedHashCode, getList().hashCode()); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Tables.java
private Tables() {} /** * Returns a {@link Collector} that accumulates elements into a {@code Table} created using the * specified supplier, whose cells are generated by applying the provided mapping functions to the * input elements. Cells are inserted into the generated {@code Table} in encounter order. * * <p>If multiple input elements map to the same row and column, an {@code IllegalStateException}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 24.9K bytes - Viewed (0)