java类org.joda.time.format.DateTimePrinter的实例源码

JodaDateTimeAdapter.java 文件源码 项目:robin-java-sdk 阅读 22 收藏 0 点赞 0 评论 0
/**
 * 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();
}
PointInTimeFormatter.java 文件源码 项目:eHMP 阅读 24 收藏 0 点赞 0 评论 0
/**
 * Creates a new formatter, however you will normally use the factory
 * or the builder.
 *
 * @param printer the internal printer, null if cannot print
 * @param parser  the internal parser, null if cannot parse
 */
public PointInTimeFormatter(DateTimePrinter printer, DateTimeParser parser) {
    super(printer, parser);
}
PointInTimeFormatter.java 文件源码 项目:eHMP 阅读 22 收藏 0 点赞 0 评论 0
/**
 * Creates a new formatter, however you will normally use the factory
 * or the builder.
 *
 * @param printer the internal printer, null if cannot print
 * @param parser  the internal parser, null if cannot parse
 */
public PointInTimeFormatter(DateTimePrinter printer, DateTimeParser parser) {
    super(printer, parser);
}


问题


面经


文章

微信
公众号

扫码关注公众号