Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for DefaultValue (0.14 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: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. api/maven-api-settings/src/main/mdo/settings.mdo

              <type>String</type>
              <defaultValue>default</defaultValue>
              <description>The layout of the mirror repository.
                @since Maven 3.</description>
            </field>
            <field>
              <name>mirrorOfLayouts</name>
              <version>1.1.0+</version>
              <type>String</type>
              <defaultValue>default,legacy</defaultValue>
              <description>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun May 18 09:15:56 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/Constants.java

         * Maven installation configuration directory.
         *
         * @since 4.0.0
         */
        @Config(defaultValue = "${maven.home}/conf")
        public static final String MAVEN_INSTALLATION_CONF = "maven.installation.conf";
    
        /**
         * Maven user configuration directory.
         *
         * @since 4.0.0
         */
        @Config(defaultValue = "${user.home}/.m2")
        public static final String MAVEN_USER_CONF = "maven.user.conf";
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jul 25 11:08:20 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  4. api/maven-api-plugin/src/main/mdo/lifecycle.mdo

            </field>
            <field xml.attribute="true">
              <name>executionPoint</name>
              <required>false</required>
              <version>2.0.0+</version>
              <type>String</type>
              <defaultValue><![CDATA[]]></defaultValue>
              <description><![CDATA[If specified, identifies this phase as a dynamic phase to decorate the specified phase id, e.g. {@code after} or {@code before}.]]></description>
            </field>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun May 18 09:15:56 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/ObjectUtilTest.java

         * {@link org.codelibs.core.lang.ObjectUtil#defaultValue(Object, Object)} .
         */
        @Test
        public void testDefaultValue() {
            final Hoge hoge = new Hoge();
            assertSame(ObjectUtil.defaultValue(null, hoge), hoge);
            assertSame(ObjectUtil.defaultValue(hoge, null), hoge);
            assertSame(ObjectUtil.defaultValue(hoge, hoge), hoge);
            assertSame(ObjectUtil.defaultValue(null, null), null);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  7. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

    ) {
      /**
       * Returns the charset of this media type, or [defaultValue] if either this media type doesn't
       * specify a charset, or if its charset is unsupported by the current runtime.
       */
      @JvmOverloads
      fun charset(defaultValue: Charset? = null): Charset? {
        val charset = parameter("charset") ?: return defaultValue
        return try {
          Charset.forName(charset)
        } catch (_: IllegalArgumentException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. schema/field.go

    	}
    
    	// default value is function or null or blank (primary keys)
    	field.DefaultValue = strings.TrimSpace(field.DefaultValue)
    	skipParseDefaultValue := strings.Contains(field.DefaultValue, "(") &&
    		strings.Contains(field.DefaultValue, ")") || strings.ToLower(field.DefaultValue) == "null" || field.DefaultValue == ""
    	switch reflect.Indirect(fieldValue).Kind() {
    	case reflect.Bool:
    		field.DataType = Bool
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 32K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

      return length
    }
    
    fun String.toLongOrDefault(defaultValue: Long): Long =
      try {
        toLong()
      } catch (_: NumberFormatException) {
        defaultValue
      }
    
    /**
     * Returns this as a non-negative integer, or 0 if it is negative, or [Int.MAX_VALUE] if it is too
     * large, or [defaultValue] if it cannot be parsed.
     */
    internal fun String?.toNonNegativeInt(defaultValue: Int): Int {
      try {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top