- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,600 for Element3 (0.2 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java
if (element instanceof Entry) { Entry<?, ?> entry = (Entry<?, ?>) element; element = mapEntry(entry.getKey(), entry.getValue()); } assertTrue(collection.contains(element)); // sanity check iterator.remove(); assertFalse(collection.contains(element)); assertEquals(originalSize - 1, collection.size()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
Comparator<? super E> comparator, E... elements) { checkNotNull(elements); switch (elements.length) { case 0: return emptySet(comparator); default: SortedSet<E> delegate = new TreeSet<E>(comparator); for (E element : elements) { checkNotNull(element); delegate.add(element); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 08 03:01:02 UTC 2024 - 15.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java
if (element instanceof Entry) { Entry<?, ?> entry = (Entry<?, ?>) element; element = mapEntry(entry.getKey(), entry.getValue()); } assertTrue(collection.contains(element)); // sanity check iterator.remove(); assertFalse(collection.contains(element)); assertEquals(originalSize - 1, collection.size()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MoreCollectors.java
/** * A collector that converts a stream of zero or one elements to an {@code Optional}. * * @throws IllegalArgumentException if the stream consists of two or more elements. * @throws NullPointerException if any element in the stream is {@code null}. * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be * {@code null}) and returns {@code Optional.empty()} if it has none.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sun Jun 02 13:36:19 UTC 2024 - 5.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TableCollectionTest.java
Table<String, Integer, Character> table, String[] elements) { for (String row : elements) { table.put(row, 1, 'a'); table.put(row, 2, 'b'); } } private static void populateForColumnKeySet( Table<Integer, String, Character> table, String[] elements) { for (String column : elements) { table.put(1, column, 'a'); table.put(2, column, 'b'); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 35.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy
} List<T> iterationOrder(T... elements) { return elements } abstract boolean isExternalProviderAllowed() abstract boolean isDirectElementAdditionAllowed() abstract boolean isElementRemovalAllowed() void containerAllowsElementAddition() { assumeTrue("the container doesn't allow direct element addition", isDirectElementAdditionAllowed()) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 13:46:07 UTC 2024 - 52.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
@JsMethod(name = "of") static <E> ImmutableList<E> jsOf(E... elements) { return copyOf(elements); } public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) { checkNotNull(elements); // for GWT return (elements instanceof Collection) ? copyOf((Collection<? extends E>) elements) : copyOf(elements.iterator()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 08 03:01:02 UTC 2024 - 11K bytes - Viewed (0) -
guava/src/com/google/common/collect/ConcurrentHashMultiset.java
// Query Operations /** * Returns the number of occurrences of {@code element} in this multiset. * * @param element the element to look for * @return the nonnegative number of occurrences of the element */ @Override public int count(@CheckForNull Object element) { AtomicInteger existingCounter = Maps.safeGet(countMap, element); return (existingCounter == null) ? 0 : existingCounter.get(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 20.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SortedLists.java
* <i>first</i> and <i>last</i> are considered to refer to the elements' ordering in a list. * * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault final class SortedLists { private SortedLists() {} /** * A specification for which index to return if the list contains at least one element that * compares as equal to the key. */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 10.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
} /** * Adds the given element to this queue. If this queue has a maximum size, after adding {@code * element} the queue will automatically evict its greatest element (according to its comparator), * which may be {@code element} itself. * * @return {@code true} always */ @CanIgnoreReturnValue @Override public boolean add(E element) { offer(element); return true; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 34K bytes - Viewed (0)