Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 275 for countIn (0.07 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

            }
            long size = spliterator.getExactSizeIfKnown();
            long[] counter = {0};
            spliterator.forEachRemaining(
                e -> {
                  consumer.accept(e);
                  counter[0]++;
                });
            if (size >= 0) {
              assertEquals(size, counter[0]);
            }
          }
        },
        ALTERNATE_ADVANCE_AND_SPLIT {
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

            }
            long size = spliterator.getExactSizeIfKnown();
            long[] counter = {0};
            spliterator.forEachRemaining(
                e -> {
                  consumer.accept(e);
                  counter[0]++;
                });
            if (size >= 0) {
              assertEquals(size, counter[0]);
            }
          }
        },
        ALTERNATE_ADVANCE_AND_SPLIT {
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Enums.java

       * constant does not exist, {@link Optional#absent} is returned. A common use case is for parsing
       * user input or falling back to a default enum constant. For example, {@code
       * Enums.getIfPresent(Country.class, countryInput).or(Country.DEFAULT);}
       *
       * @since 12.0
       */
      public static <T extends Enum<T>> Optional<T> getIfPresent(Class<T> enumClass, String value) {
        checkNotNull(enumClass);
        checkNotNull(value);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 13:41:58 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/CountingOutputStream.java

    import java.io.IOException;
    import java.io.OutputStream;
    
    /**
     * An OutputStream that counts the number of bytes written.
     *
     * @author Chris Nokleberg
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public final class CountingOutputStream extends FilterOutputStream {
    
      private long count;
    
      /**
       * Wraps another output stream, counting the number of bytes written.
       *
       * @param out the output stream to be wrapped
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

      private WorkerRunningState workerRunningState = IDLE;
    
      /**
       * This counter prevents an ABA issue where a thread may successfully schedule the worker, the
       * worker runs and exhausts the queue, another thread enqueues a task and fails to schedule the
       * worker, and then the first thread's call to delegate.execute() returns. Without this counter,
       * it would observe the QUEUING state and set it to QUEUED, and the worker would never be
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                // This appears to be a bug in the implementation, but we test the actual behavior
                assertEquals(6, encodedSize); // actual encoded size: 2 bytes count + 2*2 bytes for ciphers
                assertEquals(2, buffer[0]); // cipher count (little endian)
                assertEquals(0, buffer[1]);
                assertEquals(1, buffer[2]); // AES128_CCM (little endian)
                assertEquals(0, buffer[3]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            assertNotSame(first, second, "Should create new connection when session limit reached");
        }
    
        @Test
        @DisplayName("Should access fail counts map correctly")
        void testFailCountsAccess() throws Exception {
            // Given: Access to fail counts via reflection
            Field failCountsField = SmbTransportPoolImpl.class.getDeclaredField("failCounts");
            failCountsField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMultiset.java

         * desired count.
         *
         * @param element the element to add or remove occurrences of
         * @param count the desired count of the element in this multiset
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code element} is null
         * @throws IllegalArgumentException if {@code count} is negative
         */
        @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

            // Verify
            assertTrue(result.isPresent());
            assertEquals(Locale.JAPAN, result.get());
        }
    
        // Test findBusinessLocale with language only (no country)
        public void test_findBusinessLocale_withLanguageOnly() {
            // Setup mock config
            FessConfig mockConfig = new FessConfig.SimpleImpl() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java

            assertEquals(0xFFFFFFFF, pipe.timeout);
    
            // Max parameter and data counts should be 0
            assertEquals(0, pipe.maxParameterCount);
            assertEquals(0, pipe.maxDataCount);
    
            // Max setup count should be 0
            assertEquals(0, pipe.maxSetupCount);
    
            // Setup count should be 2 (as per actual implementation)
            assertEquals(2, pipe.setupCount);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top