Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Spliterator (0.1 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. 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)
  5. 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)
  6. 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)
  7. 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: Wed Oct 30 16:15:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/ImmutableIntArray.java

       * accessor method (under -target 8) that would lack the Android flavor's @IgnoreJRERequirement.
       */
      Spliterator.OfInt 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
    - 21.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

                        Spliterator.SIZED | Spliterator.DISTINCT | Spliterator.NONNULL,
                        7))
            .expect('a', 'b', 'c', 'd', 'e', 'f', 'g');
      }
    
      public void testFlatMap_nullStream() {
        SpliteratorTester.of(
                () ->
                    CollectSpliterators.flatMap(
                        Arrays.spliterator(new String[] {"abc", "", "de", "f", "g", ""}),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableEnumMap.java

      }
    
      @Override
      UnmodifiableIterator<K> keyIterator() {
        return Iterators.unmodifiableIterator(delegate.keySet().iterator());
      }
    
      @Override
      Spliterator<K> keySpliterator() {
        return delegate.keySet().spliterator();
      }
    
      @Override
      public int size() {
        return delegate.size();
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top