Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for getOrDefault (0.31 sec)

  1. src/main/java/org/codelibs/core/lang/SystemUtil.java

         * @return the environment variable value, or the default value if not found
         */
        public static String getEnv(String key, String defaultValue) {
            return System.getenv().getOrDefault(key, defaultValue);
        }
    
        /**
         * Returns the current time in milliseconds.
         *
         * @return the current time in milliseconds
         */
        public static long currentTimeMillis() {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. 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.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.4K 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. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

            }
          }
          return 0;
        }
    
        @Override
        public int add(E element, int occurrences) {
          checkArgument(occurrences >= 0);
          Integer frequency = backingMap.getOrDefault(element, 0);
          if (occurrences == 0) {
            return frequency;
          }
          checkArgument(occurrences <= Integer.MAX_VALUE - frequency);
          backingMap.put(element, frequency + occurrences);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top