public final class OpeningTime extends Object
Station
Each OpeningTime represents a day range for that a specific time is valid. A station can have zero to practically unlimited opening times.
If the station is opened 24h, start and end might be something like "00:00:00 - 23:59:00"
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optional<Set<DayOfWeek>> |
getDays()
Returns the unmodifyable set of days of the week for that the times are valid
|
String |
getEnd()
Returns the end time, which (unreliably) is in the format HH:MM:ss
|
String |
getStart()
Returns the start time, which (unreliably) is in the format HH:MM:ss
|
String |
getText()
Returns the original string of the opening time, which is useful in case there was an error
parsing the opening time the regular way
|
int |
hashCode() |
boolean |
includesHolidays()
Defines if the opening time includes holidays
|
public String getText()
public Optional<Set<DayOfWeek>> getDays()
public String getStart()
public String getEnd()
public boolean includesHolidays()
Copyright © 2017. All rights reserved.