Package rs.baselib.test
Class RsDateBuilder
java.lang.Object
rs.baselib.test.RsDateBuilder
public class RsDateBuilder extends java.lang.Object implements Builder<RsDate>
Builder for
RsDate objects.
The builder create the current time always but can be initialized with a starting time and an offset to be used.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description RsDateBuilder()Constructor. -
Method Summary
Modifier and Type Method Description RsDatebuild()Build the previously configured object.RsDateBuilderwithTime(long timeInMilliseconds)Create the date with given time.RsDateBuilderwithTime(Builder<java.lang.Long> timeBuilder)Create the date with given time builder.RsDateBuilderwithTimezone(java.util.TimeZone timezone)Create the date with given timezone.
-
Constructor Details
-
RsDateBuilder
public RsDateBuilder()Constructor.
-
-
Method Details
-
withTime
Create the date with given time.- Parameters:
timeInMilliseconds- the time to be used for creation (base time)- Returns:
- the builder for concatenation
-
withTime
Create the date with given time builder.- Parameters:
timeBuilder- builder for creating the time- Returns:
- the builder for concatenation
-
withTimezone
Create the date with given timezone.- Parameters:
timezone- timezone to be used- Returns:
- the builder for concatenation
-
build
Build the previously configured object.
-