Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 784 for iterator (0.12 sec)

  1. guava-tests/test/com/google/common/graph/TestUtil.java

       * contains(). Verify that these sets are consistent with the elements of their iterator.
       */
      @CanIgnoreReturnValue
      static <T> Set<T> sanityCheckSet(Set<T> set) {
        assertThat(set).hasSize(Iterators.size(set.iterator()));
        for (Object element : set) {
          assertThat(set).contains(element);
        }
        assertThat(set).doesNotContain(new Object());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/RemovalCause.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.concurrent.ConcurrentMap;
    
    /**
     * The reason why a cached entry was removed.
     *
     * @author Charles Fry
     * @since 10.0
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

        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();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

    import static org.hamcrest.CoreMatchers.notNullValue;
    import static org.hamcrest.CoreMatchers.sameInstance;
    import static org.junit.Assert.assertThat;
    
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.util.Iterator;
    
    import junit.framework.TestCase;
    
    import org.junit.Test;
    
    /**
     * @author koichik
     */
    public class ClassLoaderUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java

            return MutableClassToInstanceMap.this.delegate().entrySet();
          }
    
          @Override
          public Iterator<Entry<Class<? extends @NonNull B>, B>> iterator() {
            return new TransformedIterator<
                Entry<Class<? extends @NonNull B>, B>, Entry<Class<? extends @NonNull B>, B>>(
                delegate().iterator()) {
              @Override
              Entry<Class<? extends @NonNull B>, B> transform(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TransformedListIterator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import java.util.ListIterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An iterator that transforms a backing list iterator; for internal use. This avoids the object
     * overhead of constructing a {@link Function} for internal methods.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Nov 21 21:43:01 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/TransformedListIterator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import java.util.ListIterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An iterator that transforms a backing list iterator; for internal use. This avoids the object
     * overhead of constructing a {@link Function} for internal methods.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Nov 21 21:43:01 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                      public int size() {
                        return deduped.length;
                      }
    
                      @Override
                      public Iterator<String> iterator() {
                        return MinimalCollection.of(deduped).iterator();
                      }
                    };
                  }
                })
            .named("AbstractSet")
            .withFeatures(
                CollectionFeature.NONE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

      private ImmutableEnumMap(EnumMap<K, V> delegate) {
        this.delegate = delegate;
        checkArgument(!delegate.isEmpty());
      }
    
      @Override
      UnmodifiableIterator<K> keyIterator() {
        return Iterators.unmodifiableIterator(delegate.keySet().iterator());
      }
    
      @Override
      public int size() {
        return delegate.size();
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top