Class TimeIntervalNamer
Object
org.anchoranalysis.plugin.io.naming.interval.TimeIntervalNamer
public class TimeIntervalNamer extends Object
Derives a human-friendly name for a time-interval.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description TimeIntervalNamer(ZoneOffset offset) -
Method Summary
Modifier and Type Method Description StringnameFor(LocalDateTime start, LocalDateTime end, DateStyle dateStyle, TimeStyle timeStyle)Derives a name from the time-range in the cluster and some parameters.
-
Constructor Details
-
Method Details
-
nameFor
public String nameFor(LocalDateTime start, LocalDateTime end, DateStyle dateStyle, TimeStyle timeStyle)Derives a name from the time-range in the cluster and some parameters.If
ignoreDateandignoreTimeare bothSet, the date is included nevertheless, so the name is not empty.- Parameters:
start- minimum date-time in rangeend- maximum date-time in rangedateStyle- how to style the date in the name.timeStyle- how to style the time in the name.- Returns:
- the name.
-