Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for trySplit (0.42 sec)

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

                    "estimated size of trySplit result (%s) is larger than original size (%s)",
                    trySplit.estimateSize(), originalSize));
          }
        }
        if (subsized) {
          if (trySplit != null) {
            assertEquals(
                "sum of estimated sizes of trySplit and original spliterator after trySplit",
                originalSize,
                trySplit.estimateSize() + spliterator.estimateSize());
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

                    "estimated size of trySplit result (%s) is larger than original size (%s)",
                    trySplit.estimateSize(), originalSize));
          }
        }
        if (subsized) {
          if (trySplit != null) {
            assertEquals(
                "sum of estimated sizes of trySplit and original spliterator after trySplit",
                originalSize,
                trySplit.estimateSize() + spliterator.estimateSize());
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Streams.java

          this.fromSpliterator = fromSpliterator;
          this.index = index;
        }
    
        abstract S createSplit(F from, long i);
    
        @Override
        @CheckForNull
        public S trySplit() {
          Spliterator<?> splitOrNull = fromSpliterator.trySplit();
          if (splitOrNull == null) {
            return null;
          }
          @SuppressWarnings("unchecked")
          F split = (F) splitOrNull;
          S result = createSplit(split, index);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Streams.java

          this.fromSpliterator = fromSpliterator;
          this.index = index;
        }
    
        abstract S createSplit(F from, long i);
    
        @Override
        @CheckForNull
        public S trySplit() {
          Spliterator<?> splitOrNull = fromSpliterator.trySplit();
          if (splitOrNull == null) {
            return null;
          }
          @SuppressWarnings("unchecked")
          F split = (F) splitOrNull;
          S result = createSplit(split, index);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .put(2, 2)
                .put(3, 3)
                .put(4, 4)
                .put(5, 5)
                .put(6, 6)
                .buildOrThrow();
        assertNotNull(map.keySet().spliterator().trySplit());
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                ImmutableMap.of(),
                ImmutableMap.builder().buildOrThrow(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top