Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for DefaultValue (0.06 sec)

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

        }
    
        /**
         * Returns the object, or the defaultValue if the object is <code>null</code>.
         * <p>
         * Usage example:
         * </p>
         *
         * <pre>
         * ObjectUtil.defaultValue(null, "NULL")  = "NULL"
         * ObjectUtil.defaultValue(null, 1)    = 1
         * ObjectUtil.defaultValue(Boolean.TRUE, true) = Boolean.TRUE
         * ObjectUtil.defaultValue(null, null) = null
         * </pre>
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/DefaultsTest.java

        assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue());
        assertEquals('\0', Defaults.defaultValue(char.class).charValue());
        assertEquals(0, Defaults.defaultValue(byte.class).byteValue());
        assertEquals(0, Defaults.defaultValue(short.class).shortValue());
        assertEquals(0, Defaults.defaultValue(int.class).intValue());
        assertEquals(0, Defaults.defaultValue(long.class).longValue());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Functions.java

          implements Function<K, V>, Serializable {
        final Map<K, ? extends V> map;
        @ParametricNullness final V defaultValue;
    
        ForMapWithDefault(Map<K, ? extends V> map, @ParametricNullness V defaultValue) {
          this.map = checkNotNull(map);
          this.defaultValue = defaultValue;
        }
    
        @Override
        @ParametricNullness
        public V apply(@ParametricNullness K key) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/SystemUtil.java

         *
         * @param key the property key
         * @param defaultValue the default value
         * @return the property value, or the default value if not found
         */
        public static String getProperty(String key, String defaultValue) {
            return System.getProperty(key, defaultValue);
        }
    
        /**
         * Returns the system environment variable value for the specified key.
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Iterables.java

       * Returns the first element in {@code iterable} that satisfies the given predicate, or {@code
       * defaultValue} if none found. Note that this can usually be handled more naturally using {@code
       * tryFind(iterable, predicate).or(defaultValue)}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
       * stream.filter(predicate).findFirst().orElse(defaultValue)}
       *
       * @since 7.0
       */
      // The signature we really want here is...
      //
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/FileTypeHelper.java

         *
         * @param defaultValue the new default file type value
         */
        public void setDefaultValue(final String defaultValue) {
            this.defaultValue = defaultValue;
        }
    
        /**
         * Gets all distinct file types currently configured in the mappings.
         *
         * @return an array of all unique file type values
         */
        public String[] getTypes() {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

         * @param func The function to apply to the virtual host key
         * @param defaultValue The default value to return if no virtual host matches
         * @return The result of applying the function, or the default value
         */
        protected <T> T processVirtualHost(final Function<String, T> func, final T defaultValue) {
            final Tuple3<String, String, String>[] vHosts = ComponentUtil.getFessConfig().getVirtualHosts();
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

         * @param key The key of the setting.
         * @param defaultValue The default value if the setting is not found.
         * @return The setting value as a String.
         */
        public String getAsString(final String key, final String defaultValue) {
            final Object obj = get(key);
    
            final String value;
            if (obj == null) {
                value = defaultValue;
            } else {
                value = obj.toString();
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardAction.java

                    }
                }
            }
            return defaultValue;
        }
    
        /**
         * Retrieves a long value from system properties with a default fallback.
         *
         * @param key the property key to look up
         * @param defaultValue the default value if the property is not found or invalid
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/StandardValueGraph.java

        return edgeValueOrDefaultInternal(checkNotNull(nodeU), checkNotNull(nodeV), defaultValue);
      }
    
      @Override
      public @Nullable V edgeValueOrDefault(EndpointPair<N> endpoints, @Nullable V defaultValue) {
        validateEndpoints(endpoints);
        return edgeValueOrDefaultInternal(endpoints.nodeU(), endpoints.nodeV(), defaultValue);
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top