- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for Capacity (0.04 sec)
-
src/main/java/jcifs/internal/AllocInfo.java
/** * Interface for file system allocation information providing capacity and free space details. * Used in SMB protocol operations to query disk space information from remote SMB shares. * * @author mbechler */ public interface AllocInfo extends FileSystemInformation { /** * Gets the total capacity of the allocation. * * @return total capacity */ long getCapacity(); /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
@ParameterizedTest @ValueSource(longs = { 0L, -1L, Long.MAX_VALUE }) @DisplayName("capacity may be any long value") void testCapacityEdgeValues(long capacity) { when(mockAllocInfo.getCapacity()).thenReturn(capacity); assertEquals(capacity, mockAllocInfo.getCapacity()); } /** * Null pointer scenario – calls on a null reference should raiseRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
assertEquals(500, info.free); assertEquals(100, info.sectPerAlloc); assertEquals(512, info.bytesPerSect); assertEquals(1000L * 100 * 512, info.getCapacity(), "Capacity calculation should be correct"); assertEquals(500L * 100 * 512, info.getFree(), "Free space calculation should be correct"); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java
queue = (BlockingQueue<String>) constructor.newInstance(capacity); strings = new String[capacity]; for (int i = 0; i < capacity; i++) { strings[i] = String.valueOf(Math.random()); } } @Benchmark void addsAndRemoves(int reps) { int capacity = this.capacity; BlockingQueue<String> queue = this.queue; String[] strings = this.strings;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/CaseInsensitiveMap.java
*/ public CaseInsensitiveMap() { } /** * Creates a {@link CaseInsensitiveMap}. * * @param capacity the initial capacity */ public CaseInsensitiveMap(final int capacity) { super(capacity); } /** * Returns whether the key is contained. * * @param key the key * @return whether the key is contained */Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.2K bytes - Viewed (0) -
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) -
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) -
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) -
src/test/java/jcifs/smb/BufferCacheImplTest.java
// Subsequent get should still work assertEquals(4, impl.getBuffer().length); } // Capacity behavior: when full, additional releases are dropped; only cached buffers are returned @Test @DisplayName("Cache capacity respected: extra releases dropped; retrieval order by first free slot") void cacheCapacityAndRetrievalOrder() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashMap.java
/** * Creates a {@code CompactLinkedHashMap} instance, with a high enough "initial capacity" that it * <i>should</i> hold {@code expectedSize} elements without rebuilding internal data structures. * * @param expectedSize the number of elements you expect to add to the returned set * @return a new, empty {@code CompactLinkedHashMap} with enough capacity to hold {@code * expectedSize} elements without resizingRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 14:59:07 UTC 2025 - 8.4K bytes - Viewed (0)