- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for integer (0.16 sec)
-
src/test/java/org/codelibs/core/lang/MethodUtilTest.java
*/ List<String> genericList(List<Integer> param); /** * @param param * @return 戻り値 */ @SuppressWarnings("rawtypes") Map rawMap(Map param); /** * @param param * @return 戻り値 */ Map<String, Class<?>> genericMap(Map<Integer, String> param); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 5.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/NumberConversionUtil.java
*/ public static Object convertPrimitiveWrapper(final Class<?> type, final Object o) { if (type == int.class) { final Integer i = IntegerConversionUtil.toInteger(o); if (i != null) { return i; } return Integer.valueOf(0); } else if (type == double.class) { final Double d = DoubleConversionUtil.toDouble(o); if (d != null) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 5.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/BooleanConversionUtilTest.java
/** * @throws Exception */ public void testToBoolean() throws Exception { assertEquals("1", Boolean.TRUE, BooleanConversionUtil.toBoolean(Integer.valueOf(1))); assertEquals("2", Boolean.FALSE, BooleanConversionUtil.toBoolean(Integer.valueOf(0))); assertEquals("3", Boolean.FALSE, BooleanConversionUtil.toBoolean("0")); assertEquals("4", Boolean.TRUE, BooleanConversionUtil.toBoolean("1"));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/IntegerConversionUtilTest.java
* */ public class IntegerConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToInteger() throws Exception { assertEquals(new Integer("1000"), IntegerConversionUtil.toInteger("1,000")); } /** * @throws Exception */ public void testToPrimitiveInt() throws Exception { assertEquals(1000, IntegerConversionUtil.toPrimitiveInt("1,000"));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java
assertThat(converter.getAsString(new Integer("100")), is("100")); } /** * @throws Exception */ @Test public void testIsTarget() throws Exception { final NumberConverter converter = new NumberConverter("##0"); assertThat(converter.isTarget(Integer.class), is(true)); assertThat(converter.isTarget(Timestamp.class), is(not(true))); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/SQLRuntimeException.java
* * @param cause * 原因となった例外 */ public SQLRuntimeException(final SQLException cause) { super("ECL0072", asArray(getSql(cause), getRealMessage(cause), Integer.toString(cause.getErrorCode()), cause.getSQLState()), cause); } /** * <code>SQL</code>を返します。 * * @param cause * 原因となった例外 * @return <code>SQL</code> */
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/Maps.java
* <p> * 本クラスをstatic importすることにより、次のように{@literal Map}のインスタンスを簡潔に初期化することができます。 * </p> * * <pre> * import static org.codelibs.core.collection.Maps.*; * * Map<String, Integer> map = map("a", 1).$("b", 2).$("c", 3).$(); * </pre> * * @author koichik * @param <K> * {@literal Map}のキーの型 * @param <V> * {@literal Map}の値の型 */ public class Maps<K, V> {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/FieldUtilTest.java
* @throws Exception */ @Test public void testGet() throws Exception { final Field field = getClass().getField("objectField"); final Integer testData = new Integer(123); FieldUtil.set(field, this, testData); assertThat((Integer) FieldUtil.get(field, this), is(testData)); } /** * @throws Exception */ @Test public void testGetIntField() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 4.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java
/** * {@link Integer}用の変換ユーティリティです。 * * @author higa */ public abstract class IntegerConversionUtil { /** * {@link Integer}に変換します。 * * @param o * 変換元のオブジェクト * @return 変換された{@link Integer} */ public static Integer toInteger(final Object o) { return toInteger(o, null); } /**
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/MapsTest.java
import org.junit.Test; /** * @author koichik */ public class MapsTest { /** * @throws Exception */ @Test public void test() throws Exception { final Map<String, Integer> map = map("a", 1).$("b", 2).$("c", 3).$(); assertThat(map.size(), is(3)); assertThat(map.get("a"), is(1)); assertThat(map.get("b"), is(2)); assertThat(map.get("c"), is(3)); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.2K bytes - Viewed (0)