Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for ms (0.25 sec)

  1. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

                      @Override
                      protected Multiset<String> create(String[] elements) {
                        Multiset<String> ms = new NoRemoveMultiset<>();
                        Collections.addAll(ms, elements);
                        return ms;
                      }
                    })
                .named("NoRemoveMultiset")
                .withFeatures(
                    CollectionSize.ANY,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/StopwatchTest.java

        ticker.advance(8998);
        assertEquals("9.999 \u03bcs", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
        ticker.advance(1234567);
        assertEquals("1.235 ms", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
        ticker.advance(5000000000L);
        assertEquals("5.000 s", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableMultisetFloodingTest.java

        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create(
                    "count",
                    (ms, o) -> {
                      int unused = ms.count(o);
                    },
                    Math::log)));
      }
    
      /** All the ways to create an ImmutableMultiset. */
      enum ConstructionPathway implements Construction<Multiset<Object>> {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

                  long overDelayMs = Math.abs(timer.getDelay(TimeUnit.MILLISECONDS));
                  if (overDelayMs > 10) { // Not all timing drift is worth reporting
                    message += " (timeout delayed by " + overDelayMs + " ms after scheduled time)";
                  }
                }
                message += ": " + delegate;
              } finally {
                timeoutFuture.setException(new TimeoutFutureException(message));
              }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/StopwatchTest.java

        ticker.advance(8998);
        assertEquals("9.999 \u03bcs", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
        ticker.advance(1234567);
        assertEquals("1.235 ms", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
        ticker.advance(5000000000L);
        assertEquals("5.000 s", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CollectCollectors.java

              Supplier<M> multisetSupplier) {
        checkNotNull(elementFunction);
        checkNotNull(countFunction);
        checkNotNull(multisetSupplier);
        return Collector.of(
            multisetSupplier,
            (ms, t) -> ms.add(elementFunction.apply(t), countFunction.applyAsInt(t)),
            (ms1, ms2) -> {
              ms1.addAll(ms2);
              return ms1;
            });
      }
    
      // Maps
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CollectCollectors.java

              Supplier<M> multisetSupplier) {
        checkNotNull(elementFunction);
        checkNotNull(countFunction);
        checkNotNull(multisetSupplier);
        return Collector.of(
            multisetSupplier,
            (ms, t) -> ms.add(elementFunction.apply(t), countFunction.applyAsInt(t)),
            (ms1, ms2) -> {
              ms1.addAll(ms2);
              return ms1;
            });
      }
    
      // Maps
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

      }
    
      public void testClassCreate() {
        Multiset<Color> ms = EnumMultiset.create(Color.class);
        ms.add(Color.RED);
        ms.add(Color.YELLOW);
        ms.add(Color.RED);
        assertEquals(0, ms.count(Color.BLUE));
        assertEquals(1, ms.count(Color.YELLOW));
        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testCollectionCreate() {
        Multiset<Color> ms = EnumMultiset.create(asList(Color.RED, Color.YELLOW, Color.RED));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

      public void testToString() {
        Multiset<String> ms = LinkedHashMultiset.create();
        ms.add("a", 3);
        ms.add("c", 1);
        ms.add("b", 2);
    
        assertEquals("[a x 3, c, b x 2]", ms.toString());
      }
    
      public void testLosesPlaceInLine() throws Exception {
        Multiset<String> ms = LinkedHashMultiset.create();
        ms.add("a");
        ms.add("b", 2);
        ms.add("c");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

                        callableThrowing(exception), DELAY_MS, TimeUnit.MILLISECONDS));
        assertThat(e.getCause()).isEqualTo(exception);
      }
    
      public void testCallUninterruptiblyWithTimeout_propagatesReturnValue() throws Exception {
        String result =
            timeLimiter.callUninterruptiblyWithTimeout(
                Callables.returning(RETURN_VALUE), DELAY_MS, TimeUnit.MILLISECONDS);
    
        assertThat(result).isEqualTo(RETURN_VALUE);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
Back to top