Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 784 for iterator (0.06 sec)

  1. guava/src/com/google/common/base/Splitter.java

        checkNotNull(sequence);
    
        Iterator<String> iterator = splittingIterator(sequence);
        List<String> result = new ArrayList<>();
    
        while (iterator.hasNext()) {
          result.add(iterator.next());
        }
    
        return Collections.unmodifiableList(result);
      }
    
      /**
       * Splits {@code sequence} into string components and makes them available through an {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

      }
    
      /**
       * Gets an iterator representing an immutable snapshot of all subscribers to the given event at
       * the time this method is called.
       */
      Iterator<Subscriber> getSubscribers(Object event) {
        ImmutableSet<Class<?>> eventTypes = flattenHierarchy(event.getClass());
    
        List<Iterator<Subscriber>> subscriberIterators =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      public void testRemoveIfSomeMatchesConcurrentWithIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<E> iterator = collection.iterator();
              assertTrue(collection.removeIf(Predicate.isEqual(samples.e0())));
              iterator.next();
            });
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/HashBiMap.java

      public Set<K> keySet() {
        return new KeySet();
      }
    
      private final class KeySet extends Maps.KeySet<K, V> {
        KeySet() {
          super(HashBiMap.this);
        }
    
        @Override
        public Iterator<K> iterator() {
          return new Itr<K>() {
            @Override
            @ParametricNullness
            K output(BiEntry<K, V> entry) {
              return entry.key;
            }
          };
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ClasspathContainer.java

            this(scope);
            this.classpath = classpath;
        }
    
        // -------------------------------------------------------------------------------------------
        public Iterator<ArtifactMetadata> iterator() {
            return classpath == null ? null : classpath.iterator();
        }
    
        // -------------------------------------------------------------------------------------------
        public ClasspathContainer add(ArtifactMetadata md) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

       * entries will not be returned by the iterator. If existing entries are removed during iteration,
       * they will be absent (unless they were already returned).
       *
       * If there are I/O problems during iteration, this iterator fails silently. For example, if the
       * hosting filesystem becomes unreachable, the iterator will omit elements rather than throwing
       * exceptions.
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

            StringBuilder projectNames = new StringBuilder();
            Iterator<MavenProject> iterator = projects.iterator();
            while (iterator.hasNext()) {
                MavenProject project = iterator.next();
                projectNames.append(project.getGroupId()).append(":").append(project.getArtifactId());
                if (iterator.hasNext()) {
                    projectNames.append(", ");
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Lists.java

            : newArrayList(elements.iterator());
      }
    
      /**
       * Creates a <i>mutable</i> {@code ArrayList} instance containing the given elements; a very thin
       * shortcut for creating an empty list and then calling {@link Iterators#addAll}.
       *
       * <p><b>Note:</b> if mutability is not required and the elements are non-null, use {@link
       * ImmutableList#copyOf(Iterator)} instead.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java

      public void testAddAtIndexConcurrentWithIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<E> iterator = collection.iterator();
              getList().add(0, e3());
              iterator.next();
            });
      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      public void testAddAtIndex_unsupportedNotPresent() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractNavigableMap.java

      public Entry<K, V> firstEntry() {
        return Iterators.<@Nullable Entry<K, V>>getNext(entryIterator(), null);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lastEntry() {
        return Iterators.<@Nullable Entry<K, V>>getNext(descendingEntryIterator(), null);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> pollFirstEntry() {
        return Iterators.pollNext(entryIterator());
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top