Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 722 for Iterator (0.11 sec)

  1. src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java

     */
    package org.codelibs.core.lang;
    
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    
    /**
     * クラスローダの階層を親クラスローダに向かって反復する{@link Iterator}です。
     * <p>
     * 次のように使います.
     * </p>
     *
     * <pre>
     * import static org.codelibs.core.lang.ClassLoaderIterator.*;
     *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t06/ProjectInheritanceTest.java

            assertEquals(pom0Basedir, project1.getParent().getBasedir());
            Set set = project1.getArtifacts();
            assertNotNull(set, "No artifacts");
            assertTrue(set.size() > 0, "No Artifacts");
            Iterator iter = set.iterator();
            assertTrue(set.size() == 4, "Set size should be 4, is " + set.size());
    
            while (iter.hasNext()) {
                Artifact artifact = (Artifact) iter.next();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testKeySetIteratorRemove() {
        int key0Count = multimap().get(k0()).size();
        Iterator<K> keyItr = multimap().keySet().iterator();
        while (keyItr.hasNext()) {
          if (keyItr.next().equals(k0())) {
            keyItr.remove();
          }
        }
        assertEquals(getNumElements() - key0Count, multimap().size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      public void testCopyOf_iterator_oneElementRepeated() {
        Iterator<String> iterator = Iterators.forArray("a", "a", "a");
        Set<String> set = copyOf(iterator);
        assertEquals(singleton("a"), set);
      }
    
      public void testCopyOf_iterator_general() {
        Iterator<String> iterator = Iterators.forArray("a", "b", "a");
        Set<String> set = copyOf(iterator);
        assertEquals(2, set.size());
        assertTrue(set.contains("a"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
        Iterator<String> iterator = iterable.iterator();
        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        assertFalse(iterator.hasNext());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/TreeTraverser.java

        private final Deque<Iterator<T>> stack;
    
        PreOrderIterator(T root) {
          this.stack = new ArrayDeque<>();
          stack.addLast(singletonIterator(checkNotNull(root)));
        }
    
        @Override
        public boolean hasNext() {
          return !stack.isEmpty();
        }
    
        @Override
        public T next() {
          Iterator<T> itr = stack.getLast(); // throws NSEE if empty
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

              return AsMap.this;
            }
    
            @Override
            public Iterator<Entry<K, Collection<V>>> iterator() {
              return new AbstractIterator<Entry<K, Collection<V>>>() {
                final Iterator<Entry<K, Collection<V>>> backingIterator =
                    unfiltered.asMap().entrySet().iterator();
    
                @Override
                @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractMultimap.java

        checkNotNull(values);
        // make sure we only call values.iterator() once
        // and we only call get(key) if values is nonempty
        if (values instanceof Collection) {
          Collection<? extends V> valueCollection = (Collection<? extends V>) values;
          return !valueCollection.isEmpty() && get(key).addAll(valueCollection);
        } else {
          Iterator<? extends V> valueItr = values.iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

       */
      static class IteratorWithSunJavaBug6529795<T> implements Iterator<T> {
        Iterator<T> iterator;
        boolean nextThrewException;
    
        IteratorWithSunJavaBug6529795(Iterator<T> iterator) {
          this.iterator = iterator;
        }
    
        @Override
        public boolean hasNext() {
          return iterator.hasNext();
        }
    
        @Override
        public T next() {
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java

                sb.append(LS);
                sb.append(indentation);
                sb.append("Path to dependency: ");
                sb.append(LS);
                int num = 1;
                for (Iterator<String> i = path.iterator(); i.hasNext(); num++) {
                    sb.append(indentation);
                    sb.append('\t');
                    sb.append(num);
                    sb.append(") ");
                    sb.append(i.next());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top