Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getOrDefault (0.07 sec)

  1. android/guava/src/com/google/common/collect/ImmutableMap.java

         *
         * - a `getFooOrDefault(@Nullable Foo defaultValue)` method that returns
         *   `map.getOrDefault(FOO_KEY, defaultValue)`
         *
         * - a call that consults a chain of maps, as in `mapA.getOrDefault(key, mapB.getOrDefault(key,
         *   ...))`
         *
         * So it makes sense for the parameter (and thus the return type) to be @Nullable.
         *
         * Two other points:
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  2. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                .groupBy({ it.testProject }, { scenario ->
                    listOf(testProjectToScenarioDurations, testProjectScenarioDurationsFallback)
                        .mapNotNull {
                            it.getOrDefault(scenario.testProject, emptyList()).firstOrNull { duration ->
                                duration.scenario ==
                                    scenario.scenario
                            }
                        }.firstOrNull()
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Jul 10 02:18:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

            FessConfig fessConfig = new FessConfig.SimpleImpl() {
                @Override
                public String getSystemProperty(final String key, final String defaultValue) {
                    return systemPropMap.getOrDefault(key, defaultValue);
                }
            };
            ComponentUtil.setFessConfig(fessConfig);
            SystemHelper systemHelper = new SystemHelper() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMap.java

         *
         * - a `getFooOrDefault(@Nullable Foo defaultValue)` method that returns
         *   `map.getOrDefault(FOO_KEY, defaultValue)`
         *
         * - a call that consults a chain of maps, as in `mapA.getOrDefault(key, mapB.getOrDefault(key,
         *   ...))`
         *
         * So it makes sense for the parameter (and thus the return type) to be @Nullable.
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  5. 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 behavior
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  6. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  7. 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
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/net/MediaType.java

          mediaType.parsedCharset = this.parsedCharset;
        }
        // Return one of the constants if the media type is a known type.
        @SuppressWarnings("GetOrDefaultNotNull") // getOrDefault requires API Level 24
        MediaType result = firstNonNull(knownTypes.get(mediaType), mediaType);
        return result;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        return result;
      }
    
      /**
       * Returns the value associated with {@code key}, or zero if there is no value associated with
       * {@code key}.
       */
      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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/MediaType.java

          mediaType.parsedCharset = this.parsedCharset;
        }
        // Return one of the constants if the media type is a known type.
        @SuppressWarnings("GetOrDefaultNotNull") // getOrDefault requires API Level 24
        MediaType result = firstNonNull(knownTypes.get(mediaType), mediaType);
        return result;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
Back to top