- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for isTarget (0.1 sec)
-
src/test/java/org/codelibs/core/beans/converter/TimestampConverterTest.java
*/ @Test public void testIsTarget() throws Exception { final TimestampConverter converter = new TimestampConverter("yyyy/MM/dd"); assertThat(converter.isTarget(java.sql.Timestamp.class), is(true)); assertThat(converter.isTarget(java.util.Date.class), is(not(true))); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/DateConverterTest.java
*/ @Test public void testIsTarget() throws Exception { final DateConverter converter = new DateConverter("yyyy/MM/dd"); assertThat(converter.isTarget(Date.class), is(true)); assertThat(converter.isTarget(Timestamp.class), is(not(true))); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/TimeConverterTest.java
* @throws Exception */ public void testIsTarget() throws Exception { final TimeConverter converter = new TimeConverter("yyyy/MM/dd"); assertThat(converter.isTarget(java.sql.Time.class), is(true)); assertThat(converter.isTarget(java.util.Date.class), is(not(true))); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/SqlDateConverterTest.java
*/ @Test public void testIsTarget() throws Exception { final SqlDateConverter converter = new SqlDateConverter("yyyy/MM/dd"); assertThat(converter.isTarget(java.sql.Date.class), is(true)); assertThat(converter.isTarget(java.util.Date.class), is(not(true))); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/DictionaryCreator.java
if (!isTarget(path)) { return null; } return newDictionaryFile(encodePath(path), path, timestamp); } protected String encodePath(final String path) { return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8)); } protected boolean isTarget(final String path) { return pattern.matcher(path).find();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java
*/ @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))); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/converter/NumberConverter.java
public String getAsString(final Object value) { if (value == null) { return null; } return new DecimalFormat(pattern).format(value); } @Override public boolean isTarget(final Class<?> clazz) { assertArgumentNotNull("clazz", clazz); return Number.class.isAssignableFrom(clazz); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java
if (value == null) { return null; } return StringConversionUtil.toString((Date) value, pattern); } @Override public boolean isTarget(final Class<?> clazz) { assertArgumentNotNull("clazz", clazz); return clazz == java.sql.Timestamp.class; }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/converter/DateConverter.java
if (value == null) { return null; } return StringConversionUtil.toString((Date) value, pattern); } @Override public boolean isTarget(final Class<?> clazz) { assertArgumentNotNull("clazz", clazz); return clazz == Date.class; }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/converter/TimeConverter.java
if (value == null) { return null; } return StringConversionUtil.toString((Date) value, pattern); } @Override public boolean isTarget(final Class<?> clazz) { assertArgumentNotNull("clazz", clazz); return clazz == Time.class; }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.1K bytes - Viewed (0)