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

public class LocalDateBean extends AbstractDateBean<org.joda.time.LocalDate>
LocalDate bean wrapper used as a date type in freemarker
  • Constructor Details

    • LocalDateBean

      public LocalDateBean(org.joda.time.LocalDate delegate)
  • Method Details

    • print

      protected String print(org.joda.time.format.DateTimeFormatter formatter)
      Specified by:
      print in class AbstractDateBean<org.joda.time.LocalDate>
    • plusDays

      public LocalDateBean plusDays(int days)
    • plusMonths

      public LocalDateBean plusMonths(int months)
    • plusWeeks

      public LocalDateBean plusWeeks(int weeks)
    • plusYears

      public LocalDateBean plusYears(int years)
    • atStartOfDay

      public DateTimeBean atStartOfDay()
    • isBefore

      public boolean isBefore(LocalDateBean other)
    • isAfter

      public boolean isAfter(LocalDateBean other)
    • isEqual

      public boolean isEqual(LocalDateBean other)
    • 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

      public String toString()
      Overrides:
      toString in class Object
    • isWithin

      public boolean isWithin(LocalDateBean startDate, LocalDateBean endDate)
    • isWithin

      public boolean isWithin(DateTimeBean startDate, DateTimeBean endDate)