@Override TimeLine<PlainTime> getTimeLine() { return PlainTime.axis(); }
@Override public TimeLine<PlainTime> getTimeLine() { return PlainTime.axis(); }
/** * <p>Creates an interval tree on the clock axis filled with given clock intervals. </p> * * @param <I> the type of intervals stored in the tree * @param intervals collection of clock intervals * @return new interval tree * @throws ArithmeticException if the count of intervals overflows an int */ /*[deutsch] * <p>Erzeugt einen Intervallbaum auf der Uhrzeitachse gefüllt mit den angegebenen Uhrzeitintervallen. </p> * * @param <I> the type of intervals stored in the tree * @param intervals collection of clock intervals * @return new interval tree * @throws ArithmeticException if the count of intervals overflows an int */ public static <I extends ChronoInterval<PlainTime>> IntervalTree<PlainTime, I> onClockAxis( Collection<I> intervals ) { return IntervalTree.onTimeLine(PlainTime.axis(), intervals); }
@Override public PlainTimestamp createFrom( TemporalAccessor threeten, AttributeQuery attributes ) { PlainDate date = PlainDate.axis().createFrom(threeten, attributes); PlainTime time = PlainTime.axis().createFrom(threeten, attributes); if ((date != null) && (time != null)) { return PlainTimestamp.of(date, time); } return null; }
/** * <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()); }
private static void registerExtensions( TimeAxis.Builder<IsoUnit, PlainTimestamp> builder ) { for (ChronoExtension extension : PlainDate.axis().getExtensions()) { builder.appendExtension(extension); } for (ChronoExtension extension : PlainTime.axis().getExtensions()) { builder.appendExtension(extension); } }
new IntervalComparator<>(PlainTime.axis());
time = entity.get(WALL_TIME); } else { time = PlainTime.axis().createFrom(entity, attributes, lenient, false); if ((time == null) && lenient) { time = PlainTime.MIN;