Package ch.poole.openinghoursparser
Class RuleModifier
java.lang.Object
ch.poole.openinghoursparser.RuleModifier
- All Implemented Interfaces:
Copy<ch.poole.openinghoursparser.Element>
Container for objects from the opening_hours specification
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorRuleModifier(@NotNull RuleModifier rm) Construct a new RuleModifier with the same contents -
Method Summary
Modifier and TypeMethodDescriptioncopy()Create a copy of the objeczboolean@Nullable String@Nullable RuleModifier.ModifierinthashCode()voidsetComment(@Nullable String comment) voidsetModifier(@Nullable RuleModifier.Modifier modifier) Set the rule modifiervoidsetModifier(@Nullable String modifier) Set the rule modifierCreate a string that identifies which class created it for debugging and testingtoString()
-
Constructor Details
-
RuleModifier
public RuleModifier()Default constructor -
RuleModifier
Construct a new RuleModifier with the same contents- Parameters:
rm- the original RuleModifier
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getModifier
- Returns:
- the modifier, null if not set
-
getComment
- Returns:
- the comment, null if not set
-
setModifier
Set the rule modifier- Parameters:
modifier- the modifier to set
-
setModifier
Set the rule modifier- Parameters:
modifier- the modifier to set, an empty string, or null will unset the modifier
-
setComment
- Parameters:
comment- the comment 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
-