@Test public void Timeの値をリテラルに変換する() throws Exception { Calendar cal = Calendar.getInstance(); cal.set(2011, 10, 1, 12, 0, 0); assertThat(target.convert(new Time(cal.getTimeInMillis())), is("'12:00:00'")); }
@Override public String convert(Time target) { checkNotNull(target); StringBuilder sb = new StringBuilder(); sb.append(QUOTE_STRING); sb.append(target.toString()); sb.append(QUOTE_STRING); return sb.toString(); }
TimeLiteralConvertor implements LiteralConvertor<Time> { @Override public String convert(Time target) { checkNotNull(target); StringBuilder sb = new StringBuilder(); sb.append(QUOTE_STRING); sb.append(target.toString()); sb.append(QUOTE_STRING); return sb.toString(); } }
TimeLiteralConvertor implements LiteralConvertor<Time> { @Override public String convert(Time target) { checkNotNull(target); StringBuilder sb = new StringBuilder(); sb.append(QUOTE_STRING); sb.append(target.toString()); sb.append(QUOTE_STRING); return sb.toString(); } TimeLiteralConvertor(); }
TimeLiteralConvertor implements LiteralConvertor<Time> { @Override public String convert(Time target) { checkNotNull(target); StringBuilder sb = new StringBuilder(); sb.append(QUOTE_STRING); sb.append(target.toString()); sb.append(QUOTE_STRING); return sb.toString(); } TimeLiteralConvertor(); @Override String convert(Time target); @Override Class<?> getJavaType(); }
TimeLiteralConvertor implements LiteralConvertor<Time> { @Override public String convert(Time target) { checkNotNull(target); StringBuilder sb = new StringBuilder(); sb.append(QUOTE_STRING); sb.append(target.toString()); sb.append(QUOTE_STRING); return sb.toString(); } TimeLiteralConvertor(); @Override String convert(Time target); @Override Class<?> getJavaType();  }