- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 123 for Capacity (0.16 sec)
-
src/main/java/org/codelibs/core/collection/LruHashSet.java
import java.util.Iterator; import java.util.Set; /** * A {@link Set} implementation that stores its elements in a {@link LruHashMap}. * <p> * This set has a fixed maximum capacity. When the capacity is reached and a new element is added, * the least recently used element is removed. * </p> * @author shinsuke * @param <E> the type of elements maintained by this set */Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 3.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectCountHashMap.java
} } /** * Constructs a new instance of {@code ObjectCountHashMap} with the specified capacity. * * @param capacity the initial capacity of this {@code ObjectCountHashMap}. */ ObjectCountHashMap(int capacity) { this(capacity, DEFAULT_LOAD_FACTOR); } ObjectCountHashMap(int expectedSize, float loadFactor) { init(expectedSize, loadFactor); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 14.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/cache/SegmentBenchmark.java
@Param({"16", "32", "64", "128", "256", "512", "1024", "2048", "4096", "8192"}) int capacity; private Segment<Object, Object> segment; @BeforeExperiment void setUp() { LocalCache<Object, Object> cache = new LocalCache<>( CacheBuilder.newBuilder().concurrencyLevel(1).initialCapacity(capacity), null); checkState(cache.segments.length == 1); segment = cache.segments[0];Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.1K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(CharBuffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(ByteBuffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(ShortBuffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(IntBuffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(LongBuffer.class).capacity());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 22.2K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(CharBuffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(ByteBuffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(ShortBuffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(IntBuffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(LongBuffer.class).capacity());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 22.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create(); assertEquals(11, queue.capacity()); checkUnbounded(queue); checkNatural(queue); } public void testCreation_comparator() { MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.orderedBy(SOME_COMPARATOR).create(); assertEquals(11, queue.capacity()); checkUnbounded(queue); assertSame(SOME_COMPARATOR, queue.comparator()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 36.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
// Verify - actual implementation reads 20 bytes (4 + 4 + 4 + 4 + 4) // bytesPerSect is read as Int2 but advances by 4 bytes (padding) assertEquals(20, bytesDecoded); // Verify capacity calculation: alloc * sectPerAlloc * bytesPerSect long expectedCapacity = alloc * sectPerAlloc * bytesPerSect; assertEquals(expectedCapacity, smbInfoAllocation.getCapacity());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* Creates a {@code MonitorBasedPriorityBlockingQueue} with the default initial capacity (11) that * orders its elements according to their {@linkplain Comparable natural ordering}. */ public MonitorBasedPriorityBlockingQueue() { q = new PriorityQueue<E>(); } /** * Creates a {@code MonitorBasedPriorityBlockingQueue} with the specified initial capacity thatRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 18.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/LruHashMap.java
* @param <K> the key type * @param <V> the value type */ public class LruHashMap<K, V> extends LinkedHashMap<K, V> { private static final long serialVersionUID = 1L; /** * Default initial capacity. */ protected static final int DEFAULT_INITIAL_CAPACITY = 16; /** * Default load factor. */ protected static final float DEFAULT_LOAD_FACTOR = 0.75f; /**
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java
return true; } } return false; } /** * Sets the initial capacity for the text normalization context. * * @param initialCapacity the initial capacity to be set * @return the updated TextNormalizeContext instance */ public TextNormalizeContext initialCapacity(final int initialCapacity) {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 12K bytes - Viewed (0)