- Sort Score
- Num 10 results
- Language All
Results 171 - 180 of 305 for cloneOf (0.06 seconds)
-
cmd/event-notification.go
} // AddRulesMap - adds rules map for bucket name. func (evnot *EventNotifier) AddRulesMap(bucketName string, rulesMap event.RulesMap) { evnot.Lock() defer evnot.Unlock() rulesMap = rulesMap.Clone() // Do not add for an empty rulesMap. if len(rulesMap) == 0 { delete(evnot.bucketRulesMap, bucketName) } else { evnot.bucketRulesMap[bucketName] = rulesMap } }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jun 21 22:22:24 GMT 2024 - 7.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
import org.jspecify.annotations.Nullable; import org.junit.Ignore; /** * Base class for map testers. * * <p>TODO: see how much of this is actually needed once Map testers are written. (It was cloned * from AbstractCollectionTester.) * * @param <K> the key type of the map to be tested. * @param <V> the value type of the map to be tested. * @author George van den Driessche */ @GwtCompatible
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 7.8K bytes - Click Count (0) -
cmd/bucket-replication-metrics.go
Peak float64 `json:"peakRate" msg:"p"` N int64 `json:"n" msg:"n"` measure *rateMeasurement `json:"-"` sma *SMA `json:"-"` } // Clone returns a copy of XferStats func (rx *XferStats) Clone() *XferStats { curr := rx.curr() peak := rx.Peak if curr > peak { peak = curr } return &XferStats{ Curr: curr, Avg: rx.Avg, Peak: peak,
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 14.2K bytes - Click Count (0) -
docs/changelogs/changelog_2x.md
.add("*.publicobject.com", "sha1/T5x9IXmcrQ7YuQxXnxoCmeeQ84c=") .build()); ``` * **Interceptors lists are now deep-copied by `OkHttpClient.clone()`.** Previously clones shared interceptors, which made it difficult to customize the interceptors on a request-by-request basis. * New: `Headers.toMultimap()`. * New: `RequestBody.create(MediaType, ByteString)`.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 26.6K bytes - Click Count (0) -
src/main/java/jcifs/pac/Pac.java
* @throws PACDecodingException if the PAC data is malformed or signature validation fails */ public Pac(byte[] data, Map<Integer, KerberosKey> keys) throws PACDecodingException { byte[] checksumData = data.clone(); try { PacDataInputStream pacStream = new PacDataInputStream(new DataInputStream(new ByteArrayInputStream(data))); if (data.length <= 8) {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
} }); for (Method method : methods) { if (method.isAnnotationPresent(TestSubtype.class)) { method.setAccessible(true); SubtypeTester tester = (SubtypeTester) clone(); tester.method = method; method.invoke(tester, new Object[] {null}); } } } private Type getOnlyParameterType() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Nov 25 23:29:58 GMT 2025 - 6.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials); Mockito.when(mockCredentials.unwrap(Mockito.any())).thenReturn(mockCredentialsInternal); Mockito.when(mockCredentialsInternal.clone()).thenReturn(mockCredentialsInternal); Mockito.when(mockTransport.acquire()).thenReturn(mockTransport); } /** * Test that concurrent tree operations are thread-safe with CopyOnWriteArrayList. */
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11K bytes - Click Count (0) -
internal/event/rules_test.go
{rulesCase2, "2000*", TargetID{"2", "amqp"}}, {rulesCase3, "2010*", TargetID{"1", "webhook"}}, } for i, testCase := range testCases { result := testCase.rules.Clone() if !reflect.DeepEqual(result, testCase.rules) { t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.rules, result) } result.Add(NewPattern(testCase.prefix, ""), testCase.targetID)Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 8.8K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/HashCode.java
* * @since 15.0 (since 12.0 in HashCodes) */ public static HashCode fromBytes(byte[] bytes) { checkArgument(bytes.length >= 1, "A HashCode must contain at least 1 byte."); return fromBytesNoCopy(bytes.clone()); } /** * Creates a {@code HashCode} from a byte array. The array is <i>not</i> copied defensively, so it * must be handed-off so as to preserve the immutability contract of {@code HashCode}. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 12.6K bytes - Click Count (0) -
finisher_api.go
panicked = false return } // Begin begins a transaction with any transaction options opts func (db *DB) Begin(opts ...*sql.TxOptions) *DB { var ( // clone statement tx = db.getInstance().Session(&Session{Context: db.Statement.Context, NewDB: db.clone == 1}) opt *sql.TxOptions err error ) if len(opts) > 0 { opt = opts[0] } ctx := tx.Statement.Context
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 22.9K bytes - Click Count (0)