Package com.flagright.api.types
Class Date.Builder
- java.lang.Object
-
- com.flagright.api.types.Date.Builder
-
- All Implemented Interfaces:
Date._FinalStage,Date.DayStage,Date.MonthStage,Date.YearStage
- Enclosing class:
- Date
public static final class Date.Builder extends java.lang.Object implements Date.DayStage, Date.MonthStage, Date.YearStage, Date._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Datebuild()Date.MonthStageday(double day)Day of dateDate.Builderfrom(Date other)Date.YearStagemonth(double month)Month of dateDate._FinalStageyear(double year)Year of date
-
-
-
Method Detail
-
from
public Date.Builder from(Date other)
- Specified by:
fromin interfaceDate.DayStage
-
day
public Date.MonthStage day(double day)
Day of date
- Specified by:
dayin interfaceDate.DayStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
month
public Date.YearStage month(double month)
Month of date
- Specified by:
monthin interfaceDate.MonthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
year
public Date._FinalStage year(double year)
Year of date
- Specified by:
yearin interfaceDate.YearStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Date build()
- Specified by:
buildin interfaceDate._FinalStage
-
-