- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 1,287 for operator (0.05 sec)
-
android/guava-tests/test/com/google/common/base/ConverterTest.java
Iterable<Long> convertedValues = STR_TO_LONG.convertAll(mutableList); assertEquals(ImmutableList.of(789L, 123L), ImmutableList.copyOf(convertedValues)); Iterator<Long> iterator = convertedValues.iterator(); iterator.next(); iterator.remove(); assertEquals(ImmutableList.of("123"), mutableList); } public void testReverse() { Converter<Long, String> reverseConverter = STR_TO_LONG.reverse();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
public void testPutAllOnlyCallsIteratorOnce() { Iterable<V> iterable = new Iterable<V>() { private boolean calledIteratorAlready = false; @Override public Iterator<V> iterator() { checkState(!calledIteratorAlready); calledIteratorAlready = true; return Iterators.forArray(v3()); } }; multimap().putAll(k3(), iterable);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java
*/ public CaseInsensitiveSet(final int initialCapacity) { map = new CaseInsensitiveMap<>(initialCapacity); } @Override public Iterator<String> iterator() { return map.keySet().iterator(); } @Override public int size() { return map.size(); } @Override public boolean isEmpty() { return map.isEmpty(); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java
public void testRemoveIfSomeMatchesConcurrentWithIteration() { assertThrows( ConcurrentModificationException.class, () -> { Iterator<E> iterator = collection.iterator(); assertTrue(collection.removeIf(Predicate.isEqual(samples.e0()))); iterator.next(); }); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 20:34:52 UTC 2025 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashBiMapTest.java
Set<Entry<Integer, String>> entries = map.entrySet(); Iterator<Entry<Integer, String>> iterator = entries.iterator(); Entry<Integer, String> entry = iterator.next(); entry.setValue("two"); // changes the iterator's current entry value assertEquals("two", map.get(1)); assertEquals(Integer.valueOf(1), map.inverse().get("two")); iterator.remove(); // removes the updated entry assertTrue(map.isEmpty()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSequentialIterator.java
import org.jspecify.annotations.Nullable; /** * This class provides a skeletal implementation of the {@code Iterator} interface for sequences * whose next element can always be derived from the previous element. Null elements are not * supported, nor is the {@link #remove()} method. * * <p>Example: * * {@snippet : * Iterator<Integer> powersOfTwo = * new AbstractSequentialIterator<Integer>(1) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 2.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/EmptyIterator.java
*/ package org.codelibs.core.collection; import java.util.Iterator; import org.codelibs.core.exception.ClUnsupportedOperationException; /** * An empty {@link Iterator}. * * @author higa * @param <T> the element type */ public class EmptyIterator<T> implements Iterator<T> { /** * Creates an {@link EmptyIterator}. */ public EmptyIterator() {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 1.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
public void testPutAllOnlyCallsIteratorOnce() { Iterable<V> iterable = new Iterable<V>() { private boolean calledIteratorAlready = false; @Override public Iterator<V> iterator() { checkState(!calledIteratorAlready); calledIteratorAlready = true; return Iterators.forArray(v3()); } }; multimap().putAll(k3(), iterable);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.4K bytes - Viewed (0) -
docs/es/docs/tutorial/background-tasks.md
## Usando `BackgroundTasks` Primero, importa `BackgroundTasks` y define un parámetro en tu *path operation function* con una declaración de tipo de `BackgroundTasks`: {* ../../docs_src/background_tasks/tutorial001.py hl[1,13] *} **FastAPI** creará el objeto de tipo `BackgroundTasks` por ti y lo pasará como ese parámetro.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 4.9K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ClasspathContainer.java
this.classpath = classpath; } // ------------------------------------------------------------------------------------------- @Override public Iterator<ArtifactMetadata> iterator() { return classpath == null ? null : classpath.iterator(); } // ------------------------------------------------------------------------------------------- public ClasspathContainer add(ArtifactMetadata md) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 4.2K bytes - Viewed (0)