- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for DefaultValue (0.16 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: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3K 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 1.7K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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 Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.8K bytes - Viewed (0) -
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)