@Test public void 指定したJava型にマッチするLiteralConvertorが存在する() { assertThat(registory.hasConvertor(String.class), is(true)); assertThat(registory.hasConvertor(java.sql.Date.class), is(true)); assertThat(registory.hasConvertor(java.sql.Time.class), is(true)); assertThat(registory.hasConvertor(java.sql.Timestamp.class), is(true)); assertThat(registory.hasConvertor(Date.class), is(true)); assertThat(registory.hasConvertor(null), is(true)); }
public boolean hasConvertor(Class<?> type) { return registory.containsKey(type); }
LiteralConvertorRegistory { public boolean hasConvertor(Class<?> type) { return registory.containsKey(type); } }
LiteralConvertorRegistory { public boolean hasConvertor(Class<?> type) { return registory.containsKey(type); } private  LiteralConvertorRegistory(); }
LiteralConvertorRegistory { public boolean hasConvertor(Class<?> type) { return registory.containsKey(type); } private  LiteralConvertorRegistory(); static LiteralConvertorRegistory getInstance(); @SuppressWarnings("rawtypes") void regist(List<LiteralConvertor> convertors); @SuppressWarnings("rawtypes") void regist(LiteralConvertor convertor); boolean hasConvertor(Class<?> type); @SuppressWarnings("rawtypes") LiteralConvertor getConverter(Class<?> type); }
LiteralConvertorRegistory { public boolean hasConvertor(Class<?> type) { return registory.containsKey(type); } private  LiteralConvertorRegistory(); static LiteralConvertorRegistory getInstance(); @SuppressWarnings("rawtypes") void regist(List<LiteralConvertor> convertors); @SuppressWarnings("rawtypes") void regist(LiteralConvertor convertor); boolean hasConvertor(Class<?> type); @SuppressWarnings("rawtypes") LiteralConvertor getConverter(Class<?> type);  }