Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 371 - 380 of 607 for Iterators (0.07 seconds)

  1. guava-tests/test/com/google/common/base/PredicatesTest.java

        List<Predicate<Object>> list = new ArrayList<>();
        Iterable<Predicate<Object>> iterable =
            new Iterable<Predicate<Object>>() {
              @Override
              public Iterator<Predicate<Object>> iterator() {
                return list.iterator();
              }
            };
        Predicate<Object> predicate = Predicates.and(iterable);
        assertTrue(predicate.apply(1));
        list.add(Predicates.alwaysFalse());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 32.3K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      }
    
      /**
       * Returns an iterator over the cache's current entries. This iterator doesn't throw
       * `ConcurrentModificationException`, but if new entries are added while iterating, those new
       * entries will not be returned by the iterator. If existing entries are removed during iteration,
       * they will be absent (unless they were already returned).
       *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed May 28 23:28:25 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

      }
    
      @Override
      public @Nullable K lastKey() {
        return sortedDelegate.lastKey();
      }
    
      @Nullable K higher(K k) {
        Iterator<K> iterator = keySet().tailSet(k).iterator();
        while (iterator.hasNext()) {
          K tmp = iterator.next();
          if (comparator().compare(k, tmp) < 0) {
            return tmp;
          }
        }
        return null;
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 16.1K bytes
    - Click Count (0)
  4. impl/maven-core/src/test/java/org/apache/maven/project/harness/PomTestWrapper.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.project.harness;
    
    import java.io.File;
    import java.util.Iterator;
    import java.util.Objects;
    
    import org.apache.commons.jxpath.JXPathContext;
    import org.apache.commons.jxpath.JXPathNotFoundException;
    import org.apache.commons.jxpath.ri.JXPathContextReferenceImpl;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  5. guava/src/com/google/common/base/AbstractIterator.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Note this class is a copy of {@link com.google.common.collect.AbstractIterator} (for dependency
     * reasons).
     */
    @GwtCompatible
    abstract class AbstractIterator<T extends @Nullable Object> implements Iterator<T> {
      private State state = State.NOT_READY;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/FileEntryAdapterIterator.java

        /**
         * {@inheritDoc}
         *
         * @see java.util.Iterator#hasNext()
         */
        @Override
        public boolean hasNext() {
            return this.next != null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.util.Iterator#next()
         */
        @Override
        public SmbResource next() {
            final SmbResource n = this.next;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. impl/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodeIterator.java

    import org.apache.commons.jxpath.ri.model.NodeIterator;
    import org.apache.commons.jxpath.ri.model.NodePointer;
    import org.apache.maven.api.xml.XmlNode;
    import org.codehaus.plexus.util.xml.Xpp3Dom;
    
    /**
     * A node iterator for JXPath to support <code>Xpp3Dom</code>.
     *
     */
    class Xpp3DomNodeIterator implements NodeIterator {
    
        private NodePointer parent;
    
        private NodeTest test;
    
        private XmlNode node;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ForwardingDeque.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Deque;
    import java.util.Iterator;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A deque which forwards all its method calls to another deque. Subclasses should override one or
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Hoge.class);
            assertThat(map.size(), is(4));
            final Iterator<Entry<TypeVariable<?>, Type>> it = map.entrySet().iterator();
            Entry<TypeVariable<?>, Type> entry = it.next();
            assertThat(entry.getKey().getName(), is("T1"));
            assertThat(entry.getValue(), is(sameClass(Integer.class)));
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      public boolean contains(@Nullable Object object) {
        return forward.contains(object);
      }
    
      @Override
      public int size() {
        return forward.size();
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        return forward.descendingIterator();
      }
    
      @Override
      ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) {
        return forward.tailSet(toElement, inclusive).descendingSet();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
Back to Top