/**
* Build a JodaDateTimeAdapter
*
* @param parser Must be a DateTimeFormatter that is capable of parsing
* @param printer Must be a DateTimeFormatter that is capable of printing
*/
public JodaDateTimeAdapter(DateTimeParser parser, DateTimePrinter printer) {
if (null == parser || null == printer) {
throw new IllegalArgumentException("Parser and printer may not be null");
}
this.parser = new DateTimeFormatterBuilder().append(parser).toFormatter();
this.printer = new DateTimeFormatterBuilder().append(printer).toFormatter();
}
JodaDateTimeAdapter.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:robin-java-sdk
作者:
评论列表
文章目录