Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for OfInt (0.02 seconds)

  1. guava/src/com/google/common/collect/CollectSpliterators.java

          extends FlatMapSpliteratorOfPrimitive<InElementT, Integer, IntConsumer, Spliterator.OfInt>
          implements Spliterator.OfInt {
        FlatMapSpliteratorOfInt(
            Spliterator.@Nullable OfInt prefix,
            Spliterator<InElementT> from,
            Function<? super InElementT, Spliterator.@Nullable OfInt> function,
            int characteristics,
            long estimatedSize) {
    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)
  2. android/guava/src/com/google/common/collect/CollectSpliterators.java

          extends FlatMapSpliteratorOfPrimitive<InElementT, Integer, IntConsumer, Spliterator.OfInt>
          implements Spliterator.OfInt {
        FlatMapSpliteratorOfInt(
            Spliterator.@Nullable OfInt prefix,
            Spliterator<InElementT> from,
            Function<? super InElementT, Spliterator.@Nullable OfInt> function,
            int characteristics,
            long estimatedSize) {
    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)
  3. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

      }
    
      /**
       * @since 33.4.0 (but since 28.1 in the JRE flavor)
       */
      public static SpliteratorTester<Integer> ofInt(Supplier<Spliterator.OfInt> spliteratorSupplier) {
        return new SpliteratorTester<>(
            ImmutableSet.of(
                () -> new GeneralSpliteratorOfObject<>(spliteratorSupplier.get()),
    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

      }
    
      /**
       * @since 28.1 (but only since 33.4.0 in the Android flavor)
       */
      public static SpliteratorTester<Integer> ofInt(Supplier<Spliterator.OfInt> spliteratorSupplier) {
        return new SpliteratorTester<>(
            ImmutableSet.of(
                () -> new GeneralSpliteratorOfObject<>(spliteratorSupplier.get()),
    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/Streams.java

        long estimatedSize = 0L;
        ImmutableList.Builder<Spliterator.OfInt> splitrsBuilder =
            new ImmutableList.Builder<>(streams.length);
        for (IntStream stream : streams) {
          isParallel |= stream.isParallel();
          Spliterator.OfInt splitr = stream.spliterator();
          splitrsBuilder.add(splitr);
          characteristics &= splitr.characteristics();
    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)
  6. guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

                        7))
            .expect('a', 'b', 'c', 'd', 'e', 'f', 'g');
      }
    
      public void testFlatMapToInt_nullStream() {
        SpliteratorTester.ofInt(
                () ->
                    CollectSpliterators.flatMapToInt(
                        Arrays.spliterator(new Integer[] {1, 0, 1, 2, 3}),
                        (Integer i) -> i == 0 ? null : IntStream.of(i).spliterator(),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Streams.java

        long estimatedSize = 0L;
        ImmutableList.Builder<Spliterator.OfInt> splitrsBuilder =
            new ImmutableList.Builder<>(streams.length);
        for (IntStream stream : streams) {
          isParallel |= stream.isParallel();
          Spliterator.OfInt splitr = stream.spliterator();
          splitrsBuilder.add(splitr);
          characteristics &= splitr.characteristics();
    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. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

         */
        @IgnoreJRERequirement // Users will use this only if they're already using streams.
        @CanIgnoreReturnValue
        public Builder addAll(IntStream stream) {
          Spliterator.OfInt spliterator = stream.spliterator();
          long size = spliterator.getExactSizeIfKnown();
          if (size > 0) { // known *and* nonempty
            ensureRoomFor(Ints.saturatedCast(size));
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 21.9K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

            .containsExactly(0, 1, 3, 6, 10, 15, 21)
            .inOrder();
      }
    
      public void testAsListIterator() {
        PrimitiveIterator.OfInt intIterator =
            (PrimitiveIterator.OfInt) ImmutableIntArray.of(1, 2, 3).asList().iterator();
        assertThat(intIterator.nextInt()).isEqualTo(1);
        assertThat(intIterator.nextInt()).isEqualTo(2);
        assertThat(intIterator.nextInt()).isEqualTo(3);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/primitives/Ints.java

        /*
         * This is an override that is not directly visible to callers, so NewApi will catch calls to
         * Collection.spliterator() where necessary.
         */
        @IgnoreJRERequirement
        public Spliterator.OfInt spliterator() {
          return Spliterators.spliterator(array, start, end, 0);
        }
    
        @Override
        public boolean contains(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 31.3K bytes
    - Click Count (0)
Back to Top