Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 722 for Iterator (0.2 sec)

  1. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIteratorPastEndException() {
        MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create();
        mmHeap.addAll(Lists.newArrayList(1, 2));
        Iterator<Integer> it = mmHeap.iterator();
        assertTrue("Iterator has reached end prematurely", it.hasNext());
        it.next();
        it.next();
        assertThrows(NoSuchElementException.class, () -> it.next());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/AllTests.java

                try {
                    Path configDir = Paths.get(System.getProperty(TestProperties.TEST_CONFIG_DIR));
                    Iterator<Path> it = Files.newDirectoryStream(configDir).iterator();
    
                    while ( it.hasNext() ) {
                        Path config = it.next();
                        loadConfigFile(config, applyMutations, configs);
                    }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 14.4K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/composition/DefaultDependencyManagementImporter.java

        }
    
        private boolean equals(Collection<Exclusion> ce1, Collection<Exclusion> ce2) {
            if (ce1.size() == ce2.size()) {
                Iterator<Exclusion> i1 = ce1.iterator();
                Iterator<Exclusion> i2 = ce2.iterator();
                while (i1.hasNext() && i2.hasNext()) {
                    if (!equals(i1.next(), i2.next())) {
                        return false;
                    }
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

      private Dispatcher dispatcher;
    
      public void testPerThreadQueuedDispatcher() {
        dispatcher = Dispatcher.perThreadDispatchQueue();
        dispatcher.dispatch(1, integerSubscribers.iterator());
    
        assertThat(dispatchedSubscribers)
            .containsExactly(
                i1,
                i2,
                i3, // Integer subscribers are dispatched to first.
                s1,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 27 15:41:25 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/MapIteratorCache.java

      }
    
      final Set<K> unmodifiableKeySet() {
        return new AbstractSet<K>() {
          @Override
          public UnmodifiableIterator<K> iterator() {
            Iterator<Entry<K, V>> entryIterator = backingMap.entrySet().iterator();
    
            return new UnmodifiableIterator<K>() {
              @Override
              public boolean hasNext() {
                return entryIterator.hasNext();
              }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 4.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

          return standardSetCount(element, count);
        }
    
        @Override
        public Set<T> elementSet() {
          return new StandardElementSet();
        }
    
        @Override
        public Iterator<T> iterator() {
          return standardIterator();
        }
    
        @Override
        public boolean isEmpty() {
          return standardIsEmpty();
        }
    
        @Override
        public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java

       * </pre>
       *
       * @return A list of {@code ListenableFuture} instances representing the tasks, in the same
       *     sequential order as produced by the iterator for the given task list, each of which has
       *     completed.
       * @throws RejectedExecutionException {@inheritDoc}
       * @throws NullPointerException if any task is null
       */
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 10:45:35 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        TreeMultimap<@Nullable String, @Nullable Integer> multimap = createPopulate();
        Iterator<Entry<String, Collection<Integer>>> iterator = multimap.asMap().entrySet().iterator();
        Entry<String, Collection<Integer>> entry = iterator.next();
        assertEquals(null, entry.getKey());
        assertThat(entry.getValue()).containsExactly(7, 3, 1);
        entry = iterator.next();
        assertEquals("tree", entry.getKey());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/eventbus/Dispatcher.java

              queue.remove();
            }
          }
        }
    
        private static final class Event {
          private final Object event;
          private final Iterator<Subscriber> subscribers;
    
          private Event(Object event, Iterator<Subscriber> subscribers) {
            this.event = event;
            this.subscribers = subscribers;
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMapValues.java

        this.map = map;
      }
    
      @Override
      public int size() {
        return map.size();
      }
    
      @Override
      public UnmodifiableIterator<V> iterator() {
        return new UnmodifiableIterator<V>() {
          final UnmodifiableIterator<Entry<K, V>> entryItr = map.entrySet().iterator();
    
          @Override
          public boolean hasNext() {
            return entryItr.hasNext();
          }
    
          @Override
          public V next() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top