- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for toPrimitiveInt (0.05 sec)
-
src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java
*/ public static int toPrimitiveInt(final Object o) { return toPrimitiveInt(o, null); } /** * Converts to {@literal int}. * * @param o * The object to convert * @param pattern * The pattern string * @return The converted {@literal int} */ public static int toPrimitiveInt(final Object o, final String pattern) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/IntegerConversionUtilTest.java
*/ public void testToPrimitiveInt() throws Exception { assertEquals(1000, IntegerConversionUtil.toPrimitiveInt("1,000")); } /** * @throws Exception */ public void testToPrimitiveIntForEmptyString() throws Exception { assertEquals(0, IntegerConversionUtil.toPrimitiveInt("")); } /** * @throws Exception */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 1.5K bytes - Viewed (0) -
README.md
Boolean flag = BooleanConversionUtil.toBoolean("true"); // Returns true Date date = DateConversionUtil.toDate("2023-12-25", "yyyy-MM-dd"); // Primitive conversions with default values int primitiveInt = IntegerConversionUtil.toPrimitiveInt(value, "0"); // Default to 0 if null ``` ### Collection Utilities with Java 21 Support ```java import org.codelibs.core.collection.CollectionsUtil; import java.util.SequencedCollection;
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0)