- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 751 for element (0.15 sec)
-
android/guava/src/com/google/common/collect/Comparators.java
return new LexicographicalOrdering<S>(checkNotNull(comparator)); } /** * Returns {@code true} if each element in {@code iterable} after the first is greater than or * equal to the element that preceded it, according to the specified comparator. Note that this is * always true when the iterable has fewer than two elements. */ public static <T extends @Nullable Object> boolean isInOrder(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 10.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java
private M multimap; protected M multimap() { 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];
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/src/com/google/common/collect/AbstractMultiset.java
@Override public boolean contains(@CheckForNull Object element) { return count(element) > 0; } // Modification Operations @CanIgnoreReturnValue @Override public final boolean add(@ParametricNullness E element) { add(element, 1); return true; } @CanIgnoreReturnValue @Override public int add(@ParametricNullness E element, int occurrences) { throw new UnsupportedOperationException();
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Jun 01 22:07:10 GMT 2021 - 6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java
public void testPeek_size1() { assertEquals("size1Queue.peek() should return first element", e0(), getQueue().peek()); expectUnchanged(); } @CollectionFeature.Require(KNOWN_ORDER) @CollectionSize.Require(SEVERAL) public void testPeek_sizeMany() { assertEquals("sizeManyQueue.peek() should return first element", e0(), getQueue().peek()); expectUnchanged(); }
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) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java
@JsMethod(name = "of") static <E> ImmutableSet<E> jsOf(E... elements) { return copyOf(elements); } @JsMethod public static <E> ImmutableSet<E> copyOf(E[] elements) { checkNotNull(elements); switch (elements.length) { case 0: return of(); case 1: return of(elements[0]); default: return create(elements); } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 23 18:43:40 GMT 2024 - 8.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java
DescendingImmutableSortedMultiset(ImmutableSortedMultiset<E> forward) { this.forward = forward; } @Override public int count(@CheckForNull Object element) { return forward.count(element); } @Override @CheckForNull public Entry<E> firstEntry() { return forward.lastEntry(); } @Override @CheckForNull public Entry<E> lastEntry() {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java
public void testRemove_size1() { assertEquals("size1Queue.remove() should return first element", e0(), getQueue().remove()); expectMissing(e0()); } @CollectionFeature.Require({KNOWN_ORDER, SUPPORTS_REMOVE}) @CollectionSize.Require(SEVERAL) public void testRemove_sizeMany() { assertEquals("sizeManyQueue.remove() should return first element", e0(), getQueue().remove()); expectMissing(e0()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 2.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java
DescendingImmutableSortedMultiset(ImmutableSortedMultiset<E> forward) { this.forward = forward; } @Override public int count(@CheckForNull Object element) { return forward.count(element); } @Override @CheckForNull public Entry<E> firstEntry() { return forward.lastEntry(); } @Override @CheckForNull public Entry<E> lastEntry() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 2.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java
import java.util.Collection; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Ignore; /** * Base class for collection testers. * * @param <E> the element type of the collection to be tested. * @author Kevin Bourrillion */ @GwtCompatible @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @ElementTypesAreNonnullByDefault
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/google/UnmodifiableCollectionTests.java
* UnsupportedOperationException when those mutators are called. * </ol> * * @param collection the presumed-immutable collection * @param sampleElement an element of the same type as that contained by {@code collection}. * {@code collection} may or may not have {@code sampleElement} as a member. */ public static <E extends @Nullable Object> void assertCollectionIsUnmodifiable(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 14.8K bytes - Viewed (0)