- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for key2 (0.04 sec)
-
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/BTreeIndexedCacheTest.java
@Test public void handlesKeysWithSameHashCode() { createCache(); String key1 = new String(new byte[]{2, 31}); String key2 = new String(new byte[]{1, 62}); cache.put(key1, 1); cache.put(key2, 2); assertThat(cache.get(key1), equalTo(1)); assertThat(cache.get(key2), equalTo(2)); cache.close(); } private void checkAdds(Integer... values) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 14.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CrossBuildInMemoryCacheFactory.java
/** * Creates a new map instance whose keys are Class instances. Keys are referenced using strong or weak references, values by strong or other references depending on their usage. * This allows the classes to be collected. * * <p>A map differs from a cache in that entries are not discarded based on memory pressure, but are discarded only when the key is collected.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 4K bytes - Viewed (0) -
platforms/software/security/src/main/java/org/gradle/security/internal/SecuritySupport.java
return null; } } public static String toLongIdHexString(long key) { return String.format("%016X", key).trim(); } public static String toHexString(byte[] fingerprint) { return Fingerprint.wrap(fingerprint).toString(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 14:42:50 UTC 2024 - 6K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/provider/MapProperty.java
* * @param key the key * @param value the value */ void put(K key, V value); /** * Adds a map entry to the property value. * * <p>The given provider will be queried when the value of this property is queried. * This property will have no value when the given provider has no value. * * @param key the key
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 16:25:03 UTC 2024 - 7.7K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/DefaultCapabilitiesResolution.java
handleCapabilityAction(details, key1, versions, resolutionDetails); }); } private void handleCapabilityAction(CapabilitiesConflictHandler.ResolutionDetails details, Capability key, List<? extends Capability> versions, DefaultCapabilityResolutionDetails resolutionDetails) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 15 16:36:23 UTC 2023 - 10.6K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/WeakIdentityHashMap.java
void put(K key, V value) { map.put(new WeakKey<>(key), value); } @Nullable V get(K key) { return map.get(new WeakKey<>(key)); } Set<WeakKey<K>> keySet() { return map.keySet(); } V computeIfAbsent(K key, AbsentValueProvider<V> absentValueProvider) { WeakKey<K> weakKey = new WeakKey<>(key); V value = map.get(weakKey);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/CollectionUtils.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:40 UTC 2024 - 24.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/serializer/DependencyVerificationsXmlWriter.java
final List<DependencyVerificationConfiguration.TrustedKey> keys = configuration.getTrustedKeys(); if (keys.isEmpty()) { return; } writer.startElement(TRUSTED_KEYS); Map<String, List<DependencyVerificationConfiguration.TrustedKey>> groupedByKeyId = keys .stream()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 01 13:40:00 UTC 2024 - 15.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/StartParameterBuildOptions.java
private static final String LONG_OPTION = "refresh-keys"; public RefreshKeysOption() { super(null, CommandLineOptionConfiguration.create(LONG_OPTION, "Refresh the public keys used for dependency verification.")); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 23 22:47:53 UTC 2023 - 25.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/cache/ModelSchemaCache.java
* and for strong class references not to be held for the cache keys. * <p> * The use of {@link WeakClassSet} as the cache key, opposed to just {@link Class}, is because a type may be composed of types from different classloaders. * An example of this would be something like {@code ModelSet<SomeCustomUserType>}. * The class set abstraction effectively creates a key for all classes involved in a type.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 3.2K bytes - Viewed (0)