- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 47 for getOrDefault (0.09 seconds)
-
guava/src/com/google/common/base/Functions.java
* * <p>Prefer to write the lambda expression {@code k -> map.getOrDefault(k, defaultValue)} * instead. Note that it is not serializable unless you explicitly make it {@link Serializable}, * typically by writing {@code (Function<K, V> & Serializable) k -> map.getOrDefault(k, * defaultValue)}. * * @param map source map that determines the function behaviorCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 15.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java
this.delegateMap = delegateMap; this.entries = entries; this.size = size; } @Override public int count(@Nullable Object element) { return delegateMap.getOrDefault(element, 0); } @LazyInit private transient @Nullable ImmutableSet<E> elementSet; @Override public ImmutableSet<E> elementSet() { ImmutableSet<E> result = elementSet;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 3.2K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Functions.java
* * <p>Prefer to write the lambda expression {@code k -> map.getOrDefault(k, defaultValue)} * instead. Note that it is not serializable unless you explicitly make it {@link Serializable}, * typically by writing {@code (Function<K, V> & Serializable) k -> map.getOrDefault(k, * defaultValue)}. * * @param map source map that determines the function behaviorCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 15.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
@SuppressWarnings("TruthGetOrDefault") // We are testing our implementation of getOrDefault. public void testGetOrDefault() { LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1)); map.put(1, 1); assertThat(map.getOrDefault(1, 2)).isEqualTo(1); assertThat(map.getOrDefault(2, 2)).isEqualTo(2); } public void testPutCausesExpansion() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 114.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
@SuppressWarnings("TruthGetOrDefault") // We are testing our implementation of getOrDefault. public void testGetOrDefault() { LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1)); map.put(1, 1); assertThat(map.getOrDefault(1, 2)).isEqualTo(1); assertThat(map.getOrDefault(2, 2)).isEqualTo(2); } public void testPutCausesExpansion() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 116.4K bytes - Click Count (0) -
src/main/java/jcifs/util/SecureKeyManager.java
throw new IllegalStateException("Unable to retrieve current key for rotation"); } try { // Generate new key version int currentVersion = keyVersions.getOrDefault(sessionId, 0); int newVersion = currentVersion + 1; // Derive new key from current key String rotationLabel = String.format("KeyRotation-v%d", newVersion);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 21.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java
* * @param handle notification handle * @return number of consecutive failures */ private int getFailureCount(ChangeNotificationHandle handle) { return failureCounts.getOrDefault(handle.getDirectoryPath(), 0); } /** * Increment failure count for a handle * * @param handle notification handle */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 13.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/entity/QueryContext.java
* @return List of keywords for the default field, or empty list if none. */ public List<String> getDefaultKeyword() { if (fieldLogMap != null) { return fieldLogMap.getOrDefault(Constants.DEFAULT_FIELD, Collections.emptyList()); } return Collections.emptyList(); } /** * Adds a query term to the highlighted query set.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Tue Aug 19 14:09:36 GMT 2025 - 9.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java
String CRAWLER_METADATA_CONTENT_EXCLUDES = "crawlerMetadataContentExcludes"; Map<String, Object> propMap = new ConcurrentHashMap<>(); String getOrDefault(String propertyKey, String defaultValue); // // system.properties // default void storeSystemProperties() { ComponentUtil.getSystemProperties().store(); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 92.3K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt
val reports: List<File> = executedTaskPaths.asSequence() .flatMap { taskPathToReports.getOrDefault(it, emptyList()) } .map { it.file } .toList() if (isAnyTestTaskFailed(projectPath) || tmpTestFiles.isNotEmpty()) { prepareReportForCiPublishing(tmpTestFiles + reports)
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 11 11:05:07 GMT 2026 - 14.3K bytes - Click Count (1)