Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for spliterator (0.17 sec)

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

        initCollectionWithNullElement();
        assertFalse(collection.spliterator().hasCharacteristics(Spliterator.NONNULL));
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSpliteratorNotImmutable_collectionAllowsAdd() {
        // If add is supported, verify that IMMUTABLE is not reported.
        assertFalse(collection.spliterator().hasCharacteristics(Spliterator.IMMUTABLE));
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Streams.java

        Spliterator<A> splitrA = streamA.spliterator();
        Spliterator<B> splitrB = streamB.spliterator();
        int characteristics =
            splitrA.characteristics()
                & splitrB.characteristics()
                & (Spliterator.SIZED | Spliterator.ORDERED);
        Iterator<A> itrA = Spliterators.iterator(splitrA);
        Iterator<B> itrB = Spliterators.iterator(splitrB);
        return StreamSupport.stream(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Streams.java

        Spliterator<A> splitrA = streamA.spliterator();
        Spliterator<B> splitrB = streamB.spliterator();
        int characteristics =
            splitrA.characteristics()
                & splitrB.characteristics()
                & (Spliterator.SIZED | Spliterator.ORDERED);
        Iterator<A> itrA = Spliterators.iterator(splitrA);
        Iterator<B> itrB = Spliterators.iterator(splitrB);
        return StreamSupport.stream(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSortedAsList.java

        return new RegularImmutableSortedSet<E>(parentSubList, comparator()).asList();
      }
    
      @Override
      public Spliterator<E> spliterator() {
        return CollectSpliterators.indexed(
            size(),
            ImmutableList.SPLITERATOR_CHARACTERISTICS | Spliterator.SORTED | Spliterator.DISTINCT,
            delegateList()::get,
            comparator());
      }
    
      // redeclare to help optimizers with b/310253115
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

      private abstract static class GeneralSpliterator<E extends @Nullable Object> {
        final Spliterator<E> spliterator;
    
        GeneralSpliterator(Spliterator<E> spliterator) {
          this.spliterator = checkNotNull(spliterator);
        }
    
        abstract void forEachRemaining(Consumer<? super E> action);
    
        abstract boolean tryAdvance(Consumer<? super E> action);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

         * they were given.
         */
        void inOrder();
      }
    
      private abstract static class GeneralSpliterator<E extends @Nullable Object> {
        final Spliterator<E> spliterator;
    
        GeneralSpliterator(Spliterator<E> spliterator) {
          this.spliterator = checkNotNull(spliterator);
        }
    
        abstract void forEachRemaining(Consumer<? super E> action);
    
        abstract boolean tryAdvance(Consumer<? super E> action);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/IndexedImmutableSet.java

      abstract E get(int index);
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        return asList().iterator();
      }
    
      @Override
      public Spliterator<E> spliterator() {
        return CollectSpliterators.indexed(size(), SPLITERATOR_CHARACTERISTICS, this::get);
      }
    
      @Override
      public void forEach(Consumer<? super E> consumer) {
        checkNotNull(consumer);
        int n = size();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/LinkedHashMultimap.java

            toRemove = null;
          }
        };
      }
    
      @Override
      Spliterator<Entry<K, V>> entrySpliterator() {
        return Spliterators.spliterator(entries(), Spliterator.DISTINCT | Spliterator.ORDERED);
      }
    
      @Override
      Iterator<V> valueIterator() {
        return Maps.valueIterator(entryIterator());
      }
    
      @Override
      Spliterator<V> valueSpliterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractMultimap.java

          return Sets.equalsImpl(this, obj);
        }
      }
    
      abstract Iterator<Entry<K, V>> entryIterator();
    
      Spliterator<Entry<K, V>> entrySpliterator() {
        return Spliterators.spliterator(
            entryIterator(), size(), (this instanceof SetMultimap) ? Spliterator.DISTINCT : 0);
      }
    
      @LazyInit @CheckForNull private transient Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

       * accessor method (under -target 8) that would lack the Android flavor's @IgnoreJRERequirement.
       */
      Spliterator.OfLong spliterator() {
        return Spliterators.spliterator(array, start, end, Spliterator.IMMUTABLE | Spliterator.ORDERED);
      }
    
      /**
       * Returns an immutable <i>view</i> of this array's values as a {@code List}; note that {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top