Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 614 for countIn (0.04 sec)

  1. android/guava/src/com/google/common/collect/Iterables.java

       *
       * <p><b>Java 8+ users:</b> In most cases, the {@code Stream} equivalent of this method is {@code
       * stream.filter(element::equals).count()}. If {@code element} might be null, use {@code
       * stream.filter(Predicate.isEqual(element)).count()} instead.
       *
       * @see java.util.Collections#frequency(Collection, Object) Collections.frequency(Collection,
       *     Object)
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 18:35:28 UTC 2025
    - 43.8K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            // Test decrement below zero
            assertEquals(-1L, crawlerContext.decrementAndGetAccessCount());
            assertEquals(-1L, crawlerContext.getAccessCount());
        }
    
        /**
         * Test concurrent access count operations
         */
        public void test_accessCount_concurrent() throws Exception {
            final int threadCount = 100;
            final int operationsPerThread = 1000;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

       * Future}.
       *
       * <p>Usage example:
       *
       * {@snippet :
       * ListenableFuture<Integer> fetchCounterFuture = ...;
       *
       * // Falling back to a zero counter in case an exception happens when
       * // processing the RPC to fetch counters.
       * ListenableFuture<Integer> faultTolerantFuture = Futures.catching(
       *     fetchCounterFuture, FetchException.class, x -> 0, directExecutor());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/service/UserService.java

        @Resource
        protected FessConfig fessConfig;
    
        /**
         * Retrieves a paginated list of users based on the provided pager criteria.
         * Updates the pager with pagination information including total count and page navigation.
         *
         * @param userPager the pager containing search criteria and pagination settings
         * @return a list of users matching the criteria
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Mon Nov 24 02:07:40 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileHandleImpl.java

                }
            } catch (Exception e) {
                log.error("Failed to perform emergency file handle cleanup", e);
            }
        }
    
        /**
         * @return a file handle with increased usage count
         */
        public SmbFileHandleImpl acquire() {
            final long usage = this.usageCount.incrementAndGet();
            if (log.isTraceEnabled()) {
                log.trace(String.format("Acquire %s (%d)", this, usage));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                assertEquals(0, result);
                assertNotNull(testResponse.getData());
                assertEquals(0, testResponse.getData().length);
            }
    
            @Test
            @DisplayName("Should count decode calls correctly")
            void testDecodeCallCount() throws SMBProtocolDecodingException {
                assertEquals(0, testResponse.getDecodeCallCount());
    
                testResponse.decode(testBuffer, 0, 10);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            FileEntry fe3 = mock(FileEntry.class);
            lenient().when(fe3.getName()).thenReturn("file3");
            when(fe3.getFileIndex()).thenReturn(3);
    
            // Track query count to handle multiple queries properly
            final int[] queryCount = { 0 };
    
            // Mock send(create) to wire a query response with fe1, fe2
            doAnswer(inv -> {
                Object arg = inv.getArgument(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            verify(tree, times(1)).release();
        }
    
        @Test
        @DisplayName("release() decrements usage; closes only when count reaches zero")
        void release_decrementsAndClosesOnZero() throws CIFSException {
            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(8L, true, true);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Ordering.java

      }
    
      @J2ktIncompatible // MapMaker
      @VisibleForTesting
      static class ArbitraryOrdering extends Ordering<@Nullable Object> {
    
        private final AtomicInteger counter = new AtomicInteger(0);
        private final ConcurrentMap<Object, Integer> uids =
            Platform.tryWeakKeys(new MapMaker()).makeMap();
    
        private Integer getUid(Object obj) {
          Integer uid = uids.get(obj);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Iterables.java

       *
       * <p><b>Java 8+ users:</b> In most cases, the {@code Stream} equivalent of this method is {@code
       * stream.filter(element::equals).count()}. If {@code element} might be null, use {@code
       * stream.filter(Predicate.isEqual(element)).count()} instead.
       *
       * @see java.util.Collections#frequency(Collection, Object) Collections.frequency(Collection,
       *     Object)
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 43.6K bytes
    - Viewed (0)
Back to top