Package rs.baselib.test
Class RsMonthBuilder
java.lang.Object
rs.baselib.test.RsMonthBuilder
public class RsMonthBuilder extends java.lang.Object implements Builder<RsMonth>
Builder for
RsMonth objects.
The builder always creates the current month but can be initialized with a starting month and an offset to be used.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description RsMonthBuilder()Constructor. -
Method Summary
Modifier and Type Method Description RsMonthbuild()Build the previously configured object.RsMonthBuilderwithMonthOffset(int months)Create each month with another month offset.RsMonthBuilderwithTime(long timeInMilliseconds)Create the month with given time.RsMonthBuilderwithTime(Builder<java.lang.Long> timeBuilder)Create the month with given time builder.RsMonthBuilderwithTimezone(java.util.TimeZone timezone)Create the month with given timezone.
-
Constructor Details
-
RsMonthBuilder
public RsMonthBuilder()Constructor.
-
-
Method Details
-
withTime
Create the month with given time.- Parameters:
timeInMilliseconds- the time to be used for creation (base time)- Returns:
- the builder for concatenation
-
withTime
Create the month with given time builder.- Parameters:
timeBuilder- builder for creating the time- Returns:
- the builder for concatenation
-
withTimezone
Create the month with given timezone.- Parameters:
timezone- timezone to be used- Returns:
- the builder for concatenation
-
withMonthOffset
Create each month with another month offset.- Parameters:
months- - month offset- Returns:
- the builder for concatenation
-
build
Build the previously configured object.
-