- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 197 for retval (0.1 sec)
-
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
} public void testRemove_noneRemaining() { int countToRemove = 30; AtomicInteger current = new AtomicInteger(countToRemove); when(backingMap.get(KEY)).thenReturn(current); // it's ok if removal fails: another thread may have done the remove when(backingMap.remove(KEY, current)).thenReturn(false); assertEquals(countToRemove, multiset.remove(KEY, countToRemove)); assertEquals(0, current.get()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java
* replace(key, long). * * - Introduce a special-value private static final AtomicLong that would have the meaning of * removal-in-progress, and rework all operations to properly distinguish between zero and * absent. */ /** * If {@code key} is not already associated with a value or if {@code key} is associated with
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 14.1K bytes - Viewed (0) -
internal/config/config.go
for _, delKey := range strings.Fields(inputs[1]) { _, ok := currKVS.Lookup(delKey) if !ok { return Error[ErrConfigNotFound]("key %s doesn't exist", delKey) } defVal, isDef := defKVS.Lookup(delKey) if isDef { currKVS.Set(delKey, defVal) } else { currKVS.Delete(delKey) } } c[subSys][tgt] = currKVS } else { delete(c[subSys], tgt) } return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 18:23:41 UTC 2024 - 37.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java
this.runnable = runnable; this.executor = executor; } } } // A version of the list that uses compare and swap to manage the stack without locks. @SuppressWarnings({"SunApi", "removal"}) // b/345822163 private static final class ExecutionListCAS { static final Logger log = Logger.getLogger(ExecutionListCAS.class.getName()); private static final Unsafe UNSAFE;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 20.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
} public void testRemove_noneRemaining() { int countToRemove = 30; AtomicInteger current = new AtomicInteger(countToRemove); when(backingMap.get(KEY)).thenReturn(current); // it's ok if removal fails: another thread may have done the remove when(backingMap.remove(KEY, current)).thenReturn(false); assertEquals(countToRemove, multiset.remove(KEY, countToRemove)); assertEquals(0, current.get()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14.2K bytes - Viewed (0) -
guava/src/com/google/common/hash/Striped64.java
* striping on 64bit values. The class extends Number so that concrete subclasses must publicly do * so. */ @GwtIncompatible @ElementTypesAreNonnullByDefault @SuppressWarnings({"SunApi", "removal"}) // b/345822163 abstract class Striped64 extends Number { /* * This class maintains a lazily-initialized table of atomically * updated variables, plus an extra "base" field. The table size
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 18.6K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Types.java
* so that we get partial compile-time checking.) * * <p>This workaround should be removed at a distant future time when we no longer support Java * versions earlier than 8. */ @SuppressWarnings("removal") // b/318391980 private static final class TypeVariableInvocationHandler implements InvocationHandler { private static final ImmutableMap<String, Method> typeVariableMethods; static {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 23K bytes - Viewed (0) -
internal/etag/etag.go
// SSE-KMS: ETag != MD5 // // # Encrypted ETags // // An S3 implementation has to remember the content MD5 of objects // in case of SSE-S3. However, storing the ETag of an encrypted // object in plaintext may reveal some information about the object. // For example, two objects with the same ETag are identical with // a very high probability. // // Therefore, an S3 implementation may encrypt an ETag before storing
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Mar 10 21:09:36 UTC 2024 - 13.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/Lists.java
this.fromList = checkNotNull(fromList); this.function = checkNotNull(function); } /** * The default implementation inherited is based on iteration and removal of each element which * can be overkill. That's why we forward this call directly to the backing list. */ @Override protected void removeRange(int fromIndex, int toIndex) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.1K bytes - Viewed (0)