Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for stop (0.28 sec)

  1. android/guava-tests/test/com/google/common/base/StopwatchTest.java

        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        try {
          stopwatch.stop();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_alreadyStopped() {
        stopwatch.start();
        stopwatch.stop();
        try {
          stopwatch.stop();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/StopwatchTest.java

        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        try {
          stopwatch.stop();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_alreadyStopped() {
        stopwatch.start();
        stopwatch.stop();
        try {
          stopwatch.stop();
    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)
  3. android/guava/src/com/google/common/io/ByteProcessor.java

    /**
     * A callback interface to process bytes from a stream.
     *
     * <p>{@link #processBytes} will be called for each chunk of data that is read, and should return
     * {@code false} when you want to stop processing.
     *
     * @author Chris Nokleberg
     * @since 1.0
     */
    @DoNotMock("Implement it normally")
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java

                        result = true;
                        // don't stop processing in case a future segment explicitly excludes this repo
                    }
                    // check for external:http:*
                    else if (EXTERNAL_HTTP_WILDCARD.equals(repo) && isExternalHttpRepo(originalRepository)) {
                        result = true;
                        // don't stop processing in case a future segment explicitly excludes this repo
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Jun 15 14:24:56 GMT 2023
    - 8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

      }
    
      /**
       * This covers a bug where if a listener was installed that would stop the manager if any service
       * fails and something failed during startup before service.start was called on all the services,
       * then awaitStopped would deadlock due to an IllegalStateException that was thrown when trying to
       * stop the timer(!).
       */
      public void testFailStart_stopOthers() throws TimeoutException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Stopwatch.java

     * <pre>{@code
     * Stopwatch stopwatch = Stopwatch.createStarted();
     * doSomething();
     * stopwatch.stop(); // optional
     *
     * long millis = stopwatch.elapsed(MILLISECONDS);
     *
     * log.info("time: " + stopwatch); // formatted string like "12.3 ms"
     * }</pre>
     *
     * <p>The state-changing methods are not idempotent; it is an error to start or stop a stopwatch
     * that is already in the desired state.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Nov 15 21:38:09 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

                        result = true;
                        // don't stop processing in case a future segment explicitly excludes this repo
                    }
                    // check for external:http:*
                    else if (EXTERNAL_HTTP_WILDCARD.equals(repo) && isExternalHttpRepo(originalRepository)) {
                        result = true;
                        // don't stop processing in case a future segment explicitly excludes this repo
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Feb 17 18:40:11 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java

            assertTrue(expiredCount > 0);
            assertEquals(1, TimeoutManager.getInstance().getTimeoutTaskCount());
            TimeoutManager.getInstance().stop();
            assertNull(TimeoutManager.getInstance().thread);
            Thread.sleep(10);
            int count = expiredCount;
            task.stop();
            TimeoutManager.getInstance().start();
            assertNotNull(TimeoutManager.getInstance().thread);
            Thread.sleep(2000);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Stopwatch.java

     *
     * <pre>{@code
     * Stopwatch stopwatch = Stopwatch.createStarted();
     * doSomething();
     * stopwatch.stop(); // optional
     *
     * Duration duration = stopwatch.elapsed();
     *
     * log.info("time: " + stopwatch); // formatted string like "12.3 ms"
     * }</pre>
     *
     * <p>The state-changing methods are not idempotent; it is an error to start or stop a stopwatch
     * that is already in the desired state.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/LineProcessor.java

    /**
     * A callback to be used with the streaming {@code readLines} methods.
     *
     * <p>{@link #processLine} will be called for each line that is read, and should return {@code
     * false} when you want to stop processing.
     *
     * @author Miles Barr
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface LineProcessor<T extends @Nullable Object> {
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 1.7K bytes
    - Viewed (0)
Back to top