Search Options

Results per page
Sort
Preferred Languages
Advance

Results 721 - 730 of 2,057 for Long (0.66 sec)

  1. guava/src/com/google/common/collect/Queues.java

      public static <E> int drainUninterruptibly(
          BlockingQueue<E> q,
          Collection<? super E> buffer,
          int numElements,
          long timeout,
          TimeUnit unit) {
        Preconditions.checkNotNull(buffer);
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        boolean interrupted = false;
        try {
          while (added < numElements) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Nov 04 17:24:58 UTC 2025
    - 18K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/InputValidatorTest.java

        @ParameterizedTest
        @DisplayName("Test range validation")
        @CsvSource({ "50, 0, 100, true", "0, 0, 100, true", "100, 0, 100, true", "-1, 0, 100, false", "101, 0, 100, false" })
        void testRangeValidation(long value, long min, long max, boolean valid) {
            if (valid) {
                assertDoesNotThrow(() -> InputValidator.validateRange(value, min, max, "test"));
            } else {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java

        }
    
        /**
         * Test very long URL handling
         */
        public void test_veryLongUrl() {
            String sessionId = "test-session-020";
            urlFilter.init(sessionId);
    
            // Create a very long URL
            StringBuilder longUrl = new StringBuilder("https://example.com/");
            for (int i = 0; i < 1000; i++) {
                longUrl.append("very/long/path/segment/");
            }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            ChannelFailover.FailoverState state = new ChannelFailover.FailoverState("test-channel");
    
            long firstRetry = state.getNextRetryTime();
            state.incrementRetry();
    
            long secondRetry = state.getNextRetryTime();
            state.incrementRetry();
    
            long thirdRetry = state.getNextRetryTime();
    
            // Should have exponential backoff
            assertTrue(secondRetry > firstRetry);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        StatsCounter counter = new SimpleStatsCounter();
        counter.recordLoadSuccess(Long.MAX_VALUE);
        counter.recordLoadSuccess(1);
        CacheStats stats = counter.snapshot();
        assertThat(stats.totalLoadTime()).isEqualTo(Long.MAX_VALUE);
      }
    
      public void testSimpleStatsIncrementBy() {
        long totalLoadTime = 0;
    
        SimpleStatsCounter counter1 = new SimpleStatsCounter();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

     * }</pre>
     *
     * @see System#nanoTime()
     * @see Clock
     */
    public class MonotonicClock extends Clock {
        private static final MonotonicClock CLOCK = new MonotonicClock();
    
        private final long startNanos;
        private final Instant startInstant;
    
        /**
         * Private constructor to enforce singleton pattern.
         * Initializes the clock with the current system time and nanoTime.
         */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

        @Test
        @DisplayName("Should handle different previous session IDs")
        void testDifferentPreviousSessionIds() throws Exception {
            // Given
            long[] sessionIds = { 0L, 1L, Long.MAX_VALUE, Long.MIN_VALUE, 0xFFFFFFFFFFFFFFFFL };
    
            for (long sessionId : sessionIds) {
                Smb2SessionSetupRequest req = new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, sessionId, null);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/AutobahnTester.kt

            runTest(number, count)
          }
          updateReports()
        } finally {
          client.dispatcher.executorService.shutdown()
        }
      }
    
      private fun runTest(
        number: Long,
        count: Long,
      ) {
        val latch = CountDownLatch(1)
        val startNanos = AtomicLong()
        newWebSocket(
          "/runCase?case=$number&agent=okhttp",
          object : WebSocketListener() {
            override fun onOpen(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

         *
         * @return The total number of words.
         */
        public long getAllWordsNum() {
            return suggester.getAllWordsNum();
        }
    
        /**
         * Gets the number of words from documents in the suggest index.
         *
         * @return The number of document words.
         */
        public long getDocumentWordsNum() {
            return suggester.getDocumentWordsNum();
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComSeekResponse.java

        private long offset;
    
        /**
         * Constructs a seek response.
         *
         * @param config the configuration
         */
        public SmbComSeekResponse(final Configuration config) {
            super(config);
        }
    
        /**
         * Gets the current file offset after the seek operation.
         *
         * @return the offset
         */
        public long getOffset() {
            return this.offset;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top