Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for Start (0.14 sec)

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

        assertSame(stopwatch, stopwatch.start());
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStart_whileRunning() {
        stopwatch.start();
        try {
          stopwatch.start();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
    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)
  2. guava/src/com/google/common/collect/DiscreteDomain.java

          }
          return result;
        }
    
        @Override
        public long distance(Long start, Long end) {
          long result = end - start;
          if (end > start && result < 0) { // overflow
            return Long.MAX_VALUE;
          }
          if (end < start && result > 0) { // underflow
            return Long.MIN_VALUE;
          }
          return result;
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/RangeTest.java

        Range<Integer> closedRange = Range.closed(4, 8);
    
        // first range open end, second range open start
        assertEquals(Range.closed(2, 4), Range.lessThan(2).gap(openRange));
        assertEquals(Range.closed(2, 4), openRange.gap(Range.lessThan(2)));
    
        // first range closed end, second range open start
        assertEquals(Range.openClosed(2, 4), Range.atMost(2).gap(openRange));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Preconditions.java

        if (start < 0 || start > size) {
          return badPositionIndex(start, size, "start index");
        }
        if (end < 0 || end > size) {
          return badPositionIndex(end, size, "end index");
        }
        // end < start
        return lenientFormat("end index (%s) must not be less than start index (%s)", end, start);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

                    try {
                      task.run();
                    } finally {
                      exitLatch.countDown();
                    }
                  }
                });
        thread.start();
        enterLatch.await();
        assertFalse(task.isDone());
        task.cancel(true);
        assertTrue(task.isDone());
        assertTrue(task.isCancelled());
        assertTrue(task.wasInterrupted());
        try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/StopwatchTest.java

        assertSame(stopwatch, stopwatch.start());
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStart_whileRunning() {
        stopwatch.start();
        try {
          stopwatch.start();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, 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)
  7. android/guava-tests/test/com/google/common/collect/ComparisonChainTest.java

        assertThat(ComparisonChain.start().compareFalseFirst(false, true).result()).isLessThan(0);
        assertThat(ComparisonChain.start().compareFalseFirst(false, false).result()).isEqualTo(0);
      }
    
      public void testCompareTrueFirst() {
        assertThat(ComparisonChain.start().compareTrueFirst(true, true).result()).isEqualTo(0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/Utf8Test.java

       * overload is useful for debugging to get the loop to start at a certain character.
       *
       * @param numBytes the number of bytes in the byte array
       * @param expectedCount the expected number of roundtrippable permutations
       * @param start the starting bytes encoded as a long as big-endian
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

          // the worker has yet to start) then we don't need to start the worker.
          if (workerRunningState == RUNNING || workerRunningState == QUEUED) {
            queue.add(task);
            return;
          }
    
          oldRunCount = workerRunCount;
    
          // If the worker is not yet running, the delegate Executor might reject our attempt to start
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/JoinerTest.java

          return 3;
        }
    
        @Override
        public char charAt(int index) {
          return "foo".charAt(index);
        }
    
        @Override
        public CharSequence subSequence(int start, int end) {
          return "foo".subSequence(start, end);
        }
    
        @Override
        public String toString() {
          throw new AssertionFailedError("shouldn't be invoked");
        }
      }
    
      // Don't do this.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
Back to top