- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for Decrements (0.44 sec)
-
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
*/ public long get(K key) { return map.getOrDefault(key, 0L); } /** * Increments by one the value currently associated with {@code key}, and returns the new value. */ @CanIgnoreReturnValue public long incrementAndGet(K key) { return addAndGet(key, 1); } /** * Decrements by one the value currently associated with {@code key}, and returns the new value. */ @CanIgnoreReturnValue
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
assertSame(response, out); verify(treeConnection).send(resourceLoc, request, response, params); } @Test @DisplayName("close calls release and decrements usage; double release throws") void closeAndReleaseBehavior() { // Validates usage counting and that an extra release() throws RuntimeCIFSException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRegistration.java
*/ public void updateHeartbeat() { this.lastHeartbeat = System.currentTimeMillis(); this.heartbeatFailures = 0; } /** * Increments the heartbeat failure count. */ public void incrementHeartbeatFailures() { this.heartbeatFailures++; } /** * Gets the number of consecutive heartbeat failures. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
assertEquals(250L, t.delay, "delay should be configurable"); assertEquals("smb://custom/path/file.txt", t.url, "url should be configurable"); } @Test @DisplayName("TestLocking increments numComplete") void testNumCompleteIncrement() { TestLocking t = new TestLocking(); t.url = "smb://test/file.txt"; t.numIter = 0; // Set to 0 so run() exits immediately
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
/// ## Reduce duplication { #reduce-duplication } Reducing code duplication is one of the core ideas in **FastAPI**. As code duplication increments the chances of bugs, security issues, code desynchronization issues (when you update in one place but not in the others), etc. And these models are all sharing a lot of the data and duplicating attribute names and types.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportTest.java
long initial = transport.getUsageCount(); transport.acquire(); assertEquals(initial + 1, transport.getUsageCount()); } @Test @DisplayName("release should decrement usage count") void shouldDecrementUsageCount() { transport.acquire(); long beforeRelease = transport.getUsageCount(); transport.release();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
// Should report 26 bytes written (20 from encode + 6 increment) assertEquals(26, written); // Check that padding bytes are zeros // The implementation writes 8 bytes with writeInt8 but only increments by 6 // This means bytes 20-27 will be zero (8 bytes written by writeInt8) for (int i = 20; i < 28; i++) { assertEquals(0, buffer[i], "Padding byte at position " + i + " should be 0"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SID.java
* @param sid the RPC sid_t structure * @param type the SID type * @param domainName the domain name for this SID * @param acctName the account name for this SID * @param decrementAuthority whether to decrement the authority count */ public SID(final rpc.sid_t sid, final int type, final String domainName, final String acctName, final boolean decrementAuthority) { this.revision = sid.revision;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16K bytes - Viewed (0)