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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintlongintintintgetYear()booleanisAfter(LocalDateBean other) booleanisBefore(LocalDateBean other) booleanisEqual(LocalDateBean other) booleanisWithin(DateTimeBean startDate, DateTimeBean endDate) booleanisWithin(LocalDateBean startDate, LocalDateBean endDate) plusDays(int days) plusMonths(int months) plusWeeks(int weeks) plusYears(int years) protected Stringprint(org.joda.time.format.DateTimeFormatter formatter) toString()Methods inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractDateBean
format, pattern, printInstant, printPartial, styleMethods 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:
printin 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
-