Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 797 for iterate (0.05 sec)

  1. 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)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

        assertEqualInOrder(expected, multimap().values());
      }
    
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(ONE)
      public void testValuesIteratorRemove() {
        Iterator<V> valuesItr = multimap().values().iterator();
        valuesItr.next();
        valuesItr.remove();
        assertTrue(multimap().isEmpty());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

        private List<Restriction> intersection(List<Restriction> r1, List<Restriction> r2) {
            List<Restriction> restrictions = new ArrayList<>(r1.size() + r2.size());
            Iterator<Restriction> i1 = r1.iterator();
            Iterator<Restriction> i2 = r2.iterator();
            Restriction res1 = i1.next();
            Restriction res2 = i2.next();
    
            boolean done = false;
            while (!done) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 19K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

         */
        @Nonnull
        @Override
        public String[] option(Iterable<? extends Path> paths) {
            return format(null, paths);
        }
    
        /**
         * Implementation shared with {@link Modular}.
         */
        final String[] format(String moduleName, Iterable<? extends Path> paths) {
            if (option == null) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jun 26 07:56:58 UTC 2025
    - 15K bytes
    - Viewed (1)
  5. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

            if (availableChannels.isEmpty()) {
                throw new NoAvailableChannelException("No healthy channels available");
            }
    
            if (availableChannels.size() == 1) {
                return availableChannels.iterator().next();
            }
    
            switch (strategy) {
            case ROUND_ROBIN:
                return selectRoundRobin(availableChannels);
    
            case LEAST_LOADED:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/SuccessorsFunction.java

       *
       * <p>Some algorithms that operate on a {@code SuccessorsFunction} may produce undesired results
       * if the returned {@link Iterable} contains duplicate elements. Implementations of such
       * algorithms should document their behavior in the presence of duplicates.
       *
       * <p>The elements of the returned {@code Iterable} must each be:
       *
       * <ul>
       *   <li>Non-null
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.io;
    
    import static org.codelibs.core.collection.EnumerationIterator.iterable;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.File;
    import java.util.jar.JarEntry;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          checkValidState(cache);
        }
      }
    
      /* ---------------- Local utilities -------------- */
    
      /** Most of the tests in this class run against every one of these caches. */
      private Iterable<LoadingCache<Object, Object>> caches() {
        // lots of different ways to configure a LoadingCache
        CacheBuilderFactory factory = cacheFactory();
        return Iterables.transform(
            factory.buildAllPermutations(),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

        return adjacentNodes();
      }
    
      @Override
      public Set<N> successors() {
        return adjacentNodes();
      }
    
      @Override
      public Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode) {
        return Iterators.transform(
            adjacentNodeValues.keySet().iterator(),
            (N incidentNode) -> EndpointPair.unordered(thisNode, incidentNode));
      }
    
      @Override
      public @Nullable V value(N node) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactHashMap.java

        }
    
        @Override
        public Iterator<K> iterator() {
          return keySetIterator();
        }
    
        @Override
        public void clear() {
          CompactHashMap.this.clear();
        }
      }
    
      Iterator<K> keySetIterator() {
        Map<K, V> delegate = delegateOrNull();
        if (delegate != null) {
          return delegate.keySet().iterator();
        }
        return new Itr<K>() {
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
Back to top