- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 865 for elements (0.04 seconds)
-
android/guava/src/com/google/common/graph/ImmutableValueGraph.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import com.google.errorprone.annotations.Immutable; import com.google.errorprone.annotations.InlineMe; /** * A {@link ValueGraph} whose elements and structural relationships will never change. Instances of * this class may be obtained with {@link #copyOf(ValueGraph)}. * * <p>See the Guava User's Guide's <aCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 7.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java
import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.SampleElements.Colliders; import java.util.List; import org.jspecify.annotations.NullMarked; /** * A generator using sample elements whose hash codes all collide badly. * * @author Kevin Bourrillion */ @GwtCompatible @NullMarked public abstract class TestCollidingSetGenerator implements TestSetGenerator<Object> { @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.4K bytes - Click Count (0) -
android/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)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 7.5K bytes - Click Count (0) -
android/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()); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/PeekingIterator.java
/** * Returns the next element in the iteration, without advancing the iteration. * * <p>Calls to {@code peek()} should not change the state of the iteration, except that it * <i>may</i> prevent removal of the most recent element via {@link #remove()}. * * @throws NoSuchElementException if the iteration has no more elements according to {@link * #hasNext()} */ @ParametricNullnessCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
return Ordering.natural().sortedCopy(insertionOrder); } @Override public Set<Integer> create(Object... elements) { ImmutableRangeSet.Builder<Integer> builder = ImmutableRangeSet.builder(); for (Object o : elements) { Integer i = (Integer) o; builder.add(Range.singleton(i)); } return builder.build().asSet(DiscreteDomain.integers()); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 21.7K bytes - Click Count (0) -
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.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 23.6K bytes - Click Count (0) -
api/maven-api-annotations/src/main/java/org/apache/maven/api/annotations/package-info.java
// CHECKSTYLE_OFF: RegexpHeader /** * This package contains non-functional annotations which are * used to tag various elements and help users understanding * how those types should be used. * * @since 4.0.0 */ @Experimental
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 10 21:43:27 GMT 2024 - 273 bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
} @Override protected <E extends Comparable<? super E>> SortedSet<E> copyOf(E[] elements) { return ImmutableSortedSet.copyOf(elements); } @Override protected <E extends Comparable<? super E>> SortedSet<E> copyOf( Collection<? extends E> elements) { return ImmutableSortedSet.copyOf(elements); } @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 46.7K bytes - Click Count (0)