Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 242 for countIn (0.13 sec)

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

        assertEquals("", matcher.removeFrom(""));
        assertEquals("", matcher.replaceFrom("", 'z'));
        assertEquals("", matcher.replaceFrom("", "ZZ"));
        assertEquals("", matcher.trimFrom(""));
        assertEquals(0, matcher.countIn(""));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      private static void doTestNull(CharMatcher matcher) throws Exception {
        NullPointerTester tester = new NullPointerTester();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals("", matcher.removeFrom(""));
        assertEquals("", matcher.replaceFrom("", 'z'));
        assertEquals("", matcher.replaceFrom("", "ZZ"));
        assertEquals("", matcher.trimFrom(""));
        assertEquals(0, matcher.countIn(""));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      private static void doTestNull(CharMatcher matcher) throws Exception {
        NullPointerTester tester = new NullPointerTester();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/CharMatcher.java

       *
       * <p>Counts 2 per supplementary character, such as for {@link #whitespace}().{@link #negate}().
       */
      public int countIn(CharSequence sequence) {
        int count = 0;
        for (int i = 0; i < sequence.length(); i++) {
          if (matches(sequence.charAt(i))) {
            count++;
          }
        }
        return count;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 53.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

        return multiset(ImmutableMap.of(value1, count1, value2, count2));
      }
    
      private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) {
        ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder();
        for (Entry<T, Integer> entry : counts.entrySet()) {
          builder.addCopies(entry.getKey(), entry.getValue());
        }
        return builder.build();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

        return multiset(ImmutableMap.of(value1, count1, value2, count2));
      }
    
      private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) {
        ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder();
        for (Entry<T, Integer> entry : counts.entrySet()) {
          builder.addCopies(entry.getKey(), entry.getValue());
        }
        return builder.build();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

         * Stores a crawling configuration in the session-based storage with a unique identifier.
         * The generated session count ID combines the session ID with an incrementing counter.
         *
         * @param sessionId the session identifier
         * @param crawlingConfig the crawling configuration to store
         * @return the unique session count ID that can be used to retrieve the stored configuration
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

                count = new AtomicInteger(1);
            }
    
            /**
             * Increments the reference count for this statistics object.
             *
             * @return the new reference count after incrementing
             */
            public int increment() {
                return count.incrementAndGet();
            }
    
            /**
             * Decrements the reference count for this statistics object.
             *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/EnumMultiset.java

      @Override
      public int setCount(E element, int count) {
        checkIsE(element);
        checkNonnegative(count, "count");
        int index = element.ordinal();
        int oldCount = counts[index];
        counts[index] = count;
        size += count - oldCount;
        if (oldCount == 0 && count > 0) {
          distinctElements++;
        } else if (oldCount > 0 && count == 0) {
          distinctElements--;
        }
        return oldCount;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            builder.add(counter.getAndIncrement());
          }
        },
        ADD_ARRAY {
          @Override
          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            double[] array = new double[random.nextInt(10)];
            for (int i = 0; i < array.length; i++) {
              array[i] = counter.getAndIncrement();
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/QueryResponseList.java

         * Gets the total number of records in the search result set.
         *
         * @return the total record count
         */
        public long getAllRecordCount() {
            return allRecordCount;
        }
    
        /**
         * Gets the relation type for the total record count.
         *
         * @return the relation type (e.g., "eq" for exact count, "gte" for greater than or equal)
         */
        public String getAllRecordCountRelation() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top