Class LocalDateBean
java.lang.Object
ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean<org.joda.time.LocalDate>
ch.tocco.nice2.templating.spi.freemarker.bean.AbstractDateBean<org.joda.time.LocalDate>
ch.tocco.nice2.templating.spi.freemarker.bean.LocalDateBean
- All Implemented Interfaces:
NullableBean
LocalDate
bean wrapper used as a date type in freemarker-
Field Summary
Fields inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
long
int
int
int
getYear()
boolean
isAfter
(LocalDateBean other) boolean
isBefore
(LocalDateBean other) boolean
isEqual
(LocalDateBean other) boolean
isWithin
(DateTimeBean startDate, DateTimeBean endDate) boolean
isWithin
(LocalDateBean startDate, LocalDateBean endDate) plusDays
(int days) plusMonths
(int months) plusWeeks
(int weeks) plusYears
(int years) protected String
print
(org.joda.time.format.DateTimeFormatter formatter) toString()
Methods inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractDateBean
format, pattern, printInstant, printPartial, style
Methods inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean
getDelegate, isNull, or, strict
-
Constructor Details
-
LocalDateBean
public LocalDateBean(org.joda.time.LocalDate delegate)
-
-
Method Details
-
print
- Specified by:
print
in classAbstractDateBean<org.joda.time.LocalDate>
-
plusDays
-
plusMonths
-
plusWeeks
-
plusYears
-
atStartOfDay
-
isBefore
-
isAfter
-
isEqual
-
getYear
public int getYear() -
getMonthOfYear
public int getMonthOfYear() -
getWeekOfYear
public int getWeekOfYear() -
getDayOfMonth
public int getDayOfMonth() -
getDayOfWeek
public int getDayOfWeek() -
getMillis
public long getMillis() -
toString
-
isWithin
-
isWithin
-