Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 223 for 10 (0.13 sec)

  1. guava-testlib/src/com/google/common/testing/CollectorTester.java

    /**
     * Tester for {@code Collector} implementations.
     *
     * <p>Example usage:
     *
     * <pre>
     * CollectorTester.of(Collectors.summingInt(Integer::parseInt))
     *     .expectCollects(3, "1", "2")
     *     .expectCollects(10, "1", "4", "3", "2")
     *     .expectCollects(5, "-3", "0", "8");
     * </pre>
     *
     * @author Louis Wasserman
     * @since 21.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class CollectorTester<
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        final int value;
    
        IntegerDiv10(int value) {
          this.value = value;
        }
    
        @Override
        public int compareTo(IntegerDiv10 o) {
          return value / 10 - o.value / 10;
        }
    
        @Override
        public String toString() {
          return Integer.toString(value);
        }
      }
    
      public void testCopyOfDuplicateInconsistentWithEquals() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        return new FutureTask<>(
            new Callable<Boolean>() {
              @Override
              public Boolean call() throws Exception {
                assertEquals(RESULT, getUninterruptibly(future, 10, MINUTES));
                return Thread.interrupted();
              }
            });
      }
    
      private static final String RESULT = "result";
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

          ByteSourceFactory slicedOffsetPastEnd =
              SourceSinkFactories.asSlicedByteSourceFactory(
                  factory, expected.length + 2, expected.length + 10);
          suite.addTest(
              suiteForBytes(slicedOffsetPastEnd, bytes, name + ".slice[size + 2, long]", desc, false));
        }
    
        return suite;
      }
    
      private ByteSource source;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

      }
    
      /**
       * On a successful concurrent computation, only one thread does the work, but all the threads get
       * the same result.
       */
      private static void testConcurrentLoadingDefault(CacheBuilder<Object, Object> builder)
          throws InterruptedException {
    
        int count = 10;
        final AtomicInteger callCount = new AtomicInteger();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

        assertFalse(in.closed());
        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testClosesOnErrors_copyingFromByteSourceThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) {
          TestByteSource failSource = new TestByteSource(new byte[10], option);
          TestByteSink okSink = new TestByteSink();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        assertEquals(-13.75, DoubleMath.mean(11, -22, 44, -88), 1.0e-10);
        assertEquals(11.0, DoubleMath.mean(11), 1.0e-10);
      }
    
      @GwtIncompatible // DoubleMath.mean
      public void testMean_longVarargs() {
        assertEquals(-13.75, DoubleMath.mean(11L, -22L, 44L, -88L), 1.0e-10);
        assertEquals(11.0, DoubleMath.mean(11L), 1.0e-10);
      }
    
      @GwtIncompatible // DoubleMath.mean
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        final int value;
    
        IntegerDiv10(int value) {
          this.value = value;
        }
    
        @Override
        public int compareTo(IntegerDiv10 o) {
          return value / 10 - o.value / 10;
        }
    
        @Override
        public String toString() {
          return Integer.toString(value);
        }
      }
    
      public void testCopyOfDuplicateInconsistentWithEquals() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      volatile Scheduler configuration = newFixedDelaySchedule(0, 10, MILLISECONDS);
      volatile @Nullable ScheduledFuture<?> future = null;
    
      volatile boolean atFixedRateCalled = false;
      volatile boolean withFixedDelayCalled = false;
      volatile boolean scheduleCalled = false;
    
      final ScheduledExecutorService executor =
          new ScheduledThreadPoolExecutor(10) {
            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

            ImmutableSet.of(
                Range.<Integer>all(),
                Range.<Integer>closedOpen(3, 5),
                Range.singleton(1),
                Range.lessThan(2),
                Range.greaterThan(10),
                Range.atMost(4),
                Range.atLeast(3),
                Range.closed(4, 6),
                Range.closedOpen(1, 3),
                Range.openClosed(5, 7),
                Range.open(3, 4));
        subsets:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.6K bytes
    - Viewed (0)
Back to top