Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 784 for iterator (0.09 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testKeysEntrySetIteratorRemove() {
        Multiset<K> keys = multimap().keys();
        Iterator<Multiset.Entry<K>> itr = keys.entrySet().iterator();
        assertEquals(Multisets.immutableEntry(k0(), 1), itr.next());
        itr.remove();
        assertTrue(multimap().isEmpty());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/LineIterator.java

    import java.io.BufferedReader;
    import java.io.Reader;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    
    /**
     * {@link BufferedReader}から読み込んだ行単位の文字列を反復する{@link Iterator}です。
     * <p>
     * 次のように使います.
     * </p>
     *
     * <pre>
     * import static org.codelibs.core.io.LineIterator.*;
     *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        }
      }
    
      /**
       * Verifies that an Iterator is unmodifiable.
       *
       * <p>This test only works with iterators that iterate over a finite set.
       */
      public static void assertIteratorIsUnmodifiable(Iterator<?> iterator) {
        while (iterator.hasNext()) {
          iterator.next();
          try {
            iterator.remove();
            fail("Remove on unmodifiable iterator succeeded");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/av/AvPairs.java

    
        /**
         * 
         * @param pairs
         * @param type
         * @return first occurance of the given type
         */
        public static AvPair get ( List<AvPair> pairs, int type ) {
            Iterator<AvPair> it = pairs.iterator();
            while ( it.hasNext() ) {
                AvPair p = it.next();
                if ( p.getType() == type ) {
                    return p;
                }
            }
            return null;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/QueryResponseList.java

            return parent.indexOf(o);
        }
    
        @Override
        public boolean isEmpty() {
            return parent.isEmpty();
        }
    
        @Override
        public Iterator<Map<String, Object>> iterator() {
            return parent.iterator();
        }
    
        @Override
        public int lastIndexOf(final Object o) {
            return parent.lastIndexOf(o);
        }
    
        @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 16:09:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/ClassIterator.java

    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    import org.codelibs.core.message.MessageFormatter;
    
    /**
     * クラスの継承階層を親クラスに向かって反復する{@link Iterator}です。
     * <p>
     * 次のように使います.
     * </p>
     *
     * <pre>
     * import static org.codelibs.core.lang.ClassIterator.*;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        Iterator<Entry<K, V>> entryIterator() {
          return Iterators.filter(unfiltered.entrySet().iterator(), entryPredicate);
        }
    
        @Override
        Iterator<Entry<K, V>> descendingEntryIterator() {
          return Iterators.filter(unfiltered.descendingMap().entrySet().iterator(), entryPredicate);
        }
    
        @Override
        public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

          }
        };
      }
    
      @Override
      public Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode) {
        checkNotNull(thisNode);
    
        Iterator<EndpointPair<N>> resultWithDoubleSelfLoop;
        if (orderedNodeConnections == null) {
          resultWithDoubleSelfLoop =
              Iterators.concat(
                  Iterators.transform(
                      predecessors().iterator(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 18K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        Iterator<Entry<K, V>> entryIterator() {
          return Iterators.filter(unfiltered.entrySet().iterator(), entryPredicate);
        }
    
        @Override
        Iterator<Entry<K, V>> descendingEntryIterator() {
          return Iterators.filter(unfiltered.descendingMap().entrySet().iterator(), entryPredicate);
        }
    
        @Override
        public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
Back to top