Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for hasCharacteristics (0.08 seconds)

  1. 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)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  2. 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)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

          return spliterator.getComparator();
        }
    
        final long getExactSizeIfKnown() {
          return spliterator.getExactSizeIfKnown();
        }
    
        final boolean hasCharacteristics(int characteristics) {
          return spliterator.hasCharacteristics(characteristics);
        }
      }
    
      @IgnoreJRERequirement // *should* be redundant with the annotation on SpliteratorTester
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

          return spliterator.getComparator();
        }
    
        final long getExactSizeIfKnown() {
          return spliterator.getExactSizeIfKnown();
        }
    
        final boolean hasCharacteristics(int characteristics) {
          return spliterator.hasCharacteristics(characteristics);
        }
      }
    
      private static final class GeneralSpliteratorOfObject<E extends @Nullable Object>
          extends GeneralSpliterator<E> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/CollectSpliterators.java

                | Spliterator.SIZED
                | Spliterator.SUBSIZED
                | extraCharacteristics;
          }
    
          @Override
          public @Nullable Comparator<? super T> getComparator() {
            if (hasCharacteristics(Spliterator.SORTED)) {
              return comparator;
            } else {
              throw new IllegalStateException();
            }
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 19.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/CollectSpliterators.java

                | Spliterator.SIZED
                | Spliterator.SUBSIZED
                | extraCharacteristics;
          }
    
          @Override
          public @Nullable Comparator<? super T> getComparator() {
            if (hasCharacteristics(Spliterator.SORTED)) {
              return comparator;
            } else {
              throw new IllegalStateException();
            }
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Streams.java

        checkNotNull(stream);
        checkNotNull(function);
        boolean isParallel = stream.isParallel();
        Spliterator<T> fromSpliterator = stream.spliterator();
    
        if (!fromSpliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
          Iterator<T> fromIterator = Spliterators.iterator(fromSpliterator);
          return StreamSupport.stream(
                  new AbstractSpliterator<R>(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 36.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Streams.java

        checkNotNull(stream);
        checkNotNull(function);
        boolean isParallel = stream.isParallel();
        Spliterator<T> fromSpliterator = stream.spliterator();
    
        if (!fromSpliterator.hasCharacteristics(Spliterator.SUBSIZED)) {
          Iterator<T> fromIterator = Spliterators.iterator(fromSpliterator);
          return StreamSupport.stream(
                  new AbstractSpliterator<R>(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 36.4K bytes
    - Click Count (0)
Back to Top