Package rs.baselib.test
Class RsYearBuilder
java.lang.Object
rs.baselib.test.RsYearBuilder
public class RsYearBuilder extends java.lang.Object implements Builder<RsYear>
Builder for
RsYear objects.
The builder always creates the current year but can be initialized with a starting year and an offset to be used.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description RsYearBuilder()Constructor. -
Method Summary
Modifier and Type Method Description RsYearbuild()Build the previously configured object.RsYearBuilderwithTime(long timeInMilliseconds)Create the year with given time.RsYearBuilderwithTime(Builder<java.lang.Long> timeBuilder)Create the year with given time builder.RsYearBuilderwithTimezone(java.util.TimeZone timezone)Create the year with given timezone.RsYearBuilderwithYear(int year)Create the year with given value.RsYearBuilderwithYear(Builder<java.lang.Integer> yearBuilder)Create the year with given builder.
-
Constructor Details
-
RsYearBuilder
public RsYearBuilder()Constructor.
-
-
Method Details
-
withTime
Create the year with given time.- Parameters:
timeInMilliseconds- the time to be used for creation (base time)- Returns:
- the builder for concatenation
-
withTime
Create the year with given time builder.- Parameters:
timeBuilder- builder for creating the time- Returns:
- the builder for concatenation
-
withYear
Create the year with given value.- Parameters:
year- - year to be used- Returns:
- the builder for concatenation
-
withYear
Create the year with given builder.- Parameters:
yearBuilder- - year builder to be used- Returns:
- the builder for concatenation
-
withTimezone
Create the year with given timezone.- Parameters:
timezone- timezone to be used- Returns:
- the builder for concatenation
-
build
Build the previously configured object.
-