@Override TimeLine<PlainTimestamp> getTimeLine() { return PlainTimestamp.axis(); }
@Override public Chronology<?> preparser() { return PlainTimestamp.axis(); }
@Override public TimeLine<PlainTimestamp> getTimeLine() { return PlainTimestamp.axis(); }
/** * <p>Creates an interval tree on the timestamp axis filled with given timestamp intervals. </p> * * @param <I> the type of intervals stored in the tree * @param intervals collection of timestamp intervals * @return new interval tree * @throws ArithmeticException if the count of intervals overflows an int */ /*[deutsch] * <p>Erzeugt einen Intervallbaum auf der kombinierten Datum-Zeit-Achse gefüllt mit den * angegebenen Zeitstempelintervallen. </p> * * @param <I> the type of intervals stored in the tree * @param intervals collection of timestamp intervals * @return new interval tree * @throws ArithmeticException if the count of intervals overflows an int */ public static <I extends ChronoInterval<PlainTimestamp>> IntervalTree<PlainTimestamp, I> onTimestampAxis( Collection<I> intervals ) { return IntervalTree.onTimeLine(PlainTimestamp.axis(), intervals); }
@Override protected PlainTimestamp parseReducedEnd( CharSequence text, PlainTimestamp start, ParseLog lowerLog, ParseLog upperLog, AttributeQuery attrs ) { ChronoFormatter<PlainTimestamp> reducedParser = this.createEndFormat( PlainTimestamp.axis().preformat(start, attrs), lowerLog.getRawValues()); return reducedParser.parse(text, upperLog); }
/** * <p>Yields an empty instance for intervals on given timeline. </p> * * @return empty generic {@code IntervalCollection} * @see net.time4j.engine.TimeAxis * @see net.time4j.engine.CalendarFamily#getTimeLine(String) * @since 3.25/4.21 */ /*[deutsch] * <p>Liefert eine leere Instanz für Intervalle auf dem angegebenen Zeitstrahl. </p> * * @return empty generic {@code IntervalCollection} * @see net.time4j.engine.TimeAxis * @see net.time4j.engine.CalendarFamily#getTimeLine(String) * @since 3.25/4.21 */ @SuppressWarnings("unchecked") public static <T> IntervalCollection<T> onTimeLine(TimeLine<T> timeLine) { if (timeLine.equals(PlainDate.axis())) { return (IntervalCollection<T>) onDateAxis(); } else if (timeLine.equals(PlainTime.axis())) { return (IntervalCollection<T>) onClockAxis(); } else if (timeLine.equals(PlainTimestamp.axis())) { return (IntervalCollection<T>) onTimestampAxis(); } else if (timeLine.equals(Moment.axis())) { return (IntervalCollection<T>) onMomentAxis(); } return new GenericWindows<>(timeLine, Collections.emptyList()); }
ChronoPrinter<PlainTimestamp> printer = Iso8601Format.ofTimestamp(dateStyle, decimalStyle, precision); if (interval.getStart().isInfinite()) { buffer.append(infinityStyle.displayPast(printer, PlainTimestamp.axis())); } else { printer.print(interval.getStartAsTimestamp(), buffer); buffer.append(infinityStyle.displayFuture(printer, PlainTimestamp.axis())); } else { printer.print(interval.getEndAsTimestamp(), buffer);
parsed.setTimezone(parsedTimezone); PlainTimestamp tsp = PlainTimestamp.axis().createFrom(parsed, this.getAttributes(), this.leniency.isLax(), false); if (tsp == null) { result = null;
buffer.append(infinityStyle.displayPast(printer, PlainTimestamp.axis())); } else { Iso8601Format.ofDate(dateStyle).print(start.getCalendarDate(), buffer); printer = Iso8601Format.ofTimestamp(dateStyle, decimalStyle, precision); buffer.append(infinityStyle.displayFuture(printer, PlainTimestamp.axis())); } else { if (printer == null) {
PlainTimestamp tsp = PlainTimestamp.axis().createFrom(threeten, attributes);
new IntervalComparator<>(PlainTimestamp.axis());
return TRANSFORMER.transform(utcDays); } else if (entity instanceof UnixTime) { return PlainTimestamp.axis().createFrom(entity, attributes, lenient, preparsing).getCalendarDate();
return PlainTimestamp.axis().createFrom(entity, attributes, lenient, preparsing).getWallTime(); } else if (entity.contains(WALL_TIME)) { return entity.get(WALL_TIME);