Package ch.poole.openinghoursparser
Class VariableTime
java.lang.Object
ch.poole.openinghoursparser.VariableTime
- All Implemented Interfaces:
Copy<ch.poole.openinghoursparser.Element>
Container for objects from the opening_hours specification
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorVariableTime(@NotNull VariableTime vt) Construct a new VariableTime with the same contents -
Method Summary
Modifier and TypeMethodDescriptioncopy()Create a copy of the objeczbooleangetEvent()intinthashCode()voidSet the day the range starts onvoidSet the day the range starts onvoidsetOffset(int offset) Create a string that identifies which class created it for debugging and testingtoString()
-
Constructor Details
-
VariableTime
public VariableTime()Default constructor -
VariableTime
Construct a new VariableTime with the same contents- Parameters:
vt- the original VariableTime
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getEvent
- Returns:
- the event
-
getOffset
public int getOffset()- Returns:
- the offset
-
setEvent
Set the day the range starts on- Parameters:
event- the event to set
-
setEvent
Set the day the range starts on- Parameters:
event- the event to set
-
setOffset
public void setOffset(int offset) - Parameters:
offset- the offset to set
-
copy
Description copied from interface:CopyCreate a copy of the objecz- Returns:
- a copy of the object
-
toDebugString
Create a string that identifies which class created it for debugging and testing- Returns:
- the output of toString with the class name prepended
-