Package ch.poole.openinghoursparser
Class Nth
java.lang.Object
ch.poole.openinghoursparser.Nth
- All Implemented Interfaces:
Copy<ch.poole.openinghoursparser.Element>
Container for objects from the opening_hours specification
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Create a copy of the objeczbooleanintintinthashCode()voidsetEndNth(int endNth) voidsetStartNth(int startNth) Create a string that identifies which class created it for debugging and testingtoString()
-
Field Details
-
INVALID_NTH
public static final int INVALID_NTH- See Also:
-
-
Constructor Details
-
Nth
public Nth()Default constructor -
Nth
Construct a new Nth with the same content- Parameters:
n- original Nth
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getStartNth
public int getStartNth()- Returns:
- the startNth
-
getEndNth
public int getEndNth()- Returns:
- the endNth of Nth.INVALID_NTH if not set/not a range
-
setStartNth
public void setStartNth(int startNth) - Parameters:
startNth- the startNth to set
-
setEndNth
public void setEndNth(int endNth) - Parameters:
endNth- the endNth 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
-