- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for DefaultValue (0.08 sec)
-
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) -
android/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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.7K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.7K bytes - Viewed (0) -
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) -
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 Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.4K bytes - Viewed (0) -
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) -
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) -
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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Settings.kt
fun getEnablePush(defaultValue: Boolean): Boolean { val bit = 1 shl ENABLE_PUSH return if (bit and set != 0) values[ENABLE_PUSH] == 1 else defaultValue } fun getMaxConcurrentStreams(): Int { val bit = 1 shl MAX_CONCURRENT_STREAMS return if (bit and set != 0) values[MAX_CONCURRENT_STREAMS] else Int.MAX_VALUE } fun getMaxFrameSize(defaultValue: Int): Int { val bit = 1 shl MAX_FRAME_SIZE
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ForwardingValueGraph.java
} @Override public @Nullable V edgeValueOrDefault(N nodeU, N nodeV, @Nullable V defaultValue) { return delegate().edgeValueOrDefault(nodeU, nodeV, defaultValue); } @Override public @Nullable V edgeValueOrDefault(EndpointPair<N> endpoints, @Nullable V defaultValue) { return delegate().edgeValueOrDefault(endpoints, defaultValue); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.8K bytes - Viewed (0)