Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for DefaultValue (0.26 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. api/maven-api-plugin/src/main/mdo/plugin.mdo

              <description></description>
              <type>boolean</type>
              <defaultValue>false</defaultValue>
            </field>
            <field>
              <name>inheritedByDefault</name>
              <version>1.0.0+</version>
              <description></description>
              <type>boolean</type>
              <defaultValue>true</defaultValue>
            </field>
            <field>
              <name>requiredJavaVersion</name>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:28:41 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  4. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/Parameter.java

        }
    
        public void setEditable(boolean editable) {
            this.editable = editable;
        }
    
        public void setDefaultValue(String defaultValue) {
            this.defaultValue = defaultValue;
        }
    
        public String getDefaultValue() {
            return defaultValue;
        }
    
        @Override
        public String toString() {
            return "Mojo parameter [name: '" + getName() + "'; alias: '" + getAlias() + "']";
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

        tag: Long,
      ): BasicDerAdapter<T> = copy(tagClass = tagClass, tag = tag)
    
      /** Returns a copy of this adapter that doesn't encode values equal to [defaultValue]. */
      fun optional(defaultValue: T? = null): BasicDerAdapter<T> = copy(isOptional = true, defaultValue = defaultValue)
    
      /**
       * Returns a copy of this adapter that sets the encoded or decoded value as the type hint for the
       * other adapters on this SEQUENCE to interrogate.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.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: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  7. 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)
  8. 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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun May 18 09:15:56 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top