- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 229 for countIn (0.04 sec)
-
android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java
teststring = newTestString(new Random(1), bitSet, percentMatching); } @Benchmark public int countIn(int reps) { int result = 0; CharMatcher matcher = this.matcher; String teststring = this.teststring; for (int i = 0; i < reps; i++) { result += matcher.countIn(teststring); } return result; } @Benchmark public int collapseFrom(int reps) { int result = 0;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.9K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 8.2K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 8.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
/** * Returns a {@code new Object()} for every request, and increments a counter for every request. * The count is accessible via {@link #getCount}. */ static class CountingLoader extends CacheLoader<Object, Object> { private final AtomicInteger count = new AtomicInteger(); @Override public Object load(Object from) { count.incrementAndGet(); return new Object(); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 5.1K bytes - Viewed (0) -
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 wrappedRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.9K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/pager/GroupPager.java
* * @return the total record count */ public int getAllRecordCount() { return allRecordCount; } /** * Sets the total number of records available across all pages. * * @param allRecordCount the total record count to set */ public void setAllRecordCount(final int allRecordCount) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableMultiset.java
final Object[] elements; final int[] counts; // "extends Object" works around https://github.com/typetools/checker-framework/issues/3013 SerializedForm(Multiset<? extends Object> multiset) { int distinct = multiset.entrySet().size(); elements = new Object[distinct]; counts = new int[distinct]; int i = 0;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/TestingRemovalListeners.java
add(notification); } } /** * {@link RemovalListener} that counts each {@link RemovalNotification} it receives, and provides * access to the most-recently received one. */ static class CountingRemovalListener<K, V> implements RemovalListener<K, V> { private final AtomicInteger count = new AtomicInteger(); private volatile RemovalNotification<K, V> lastNotification; @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 3.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/FacetResponse.java
/** * Response object for faceted search results containing query counts and field facets. * This class processes OpenSearch aggregations to provide structured facet information * for search result filtering and navigation. */ public class FacetResponse { /** * Map containing query facet counts, where keys are decoded query strings * and values are document counts for each query. */Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sun Nov 23 11:39:05 UTC 2025 - 5.3K bytes - Viewed (0)