Class LocalDateField<N>

  • Type Parameters:
    N - the resulting type of the extracted value
    All Implemented Interfaces:
    TemporalField<N,​java.time.LocalDate>

    public class LocalDateField<N>
    extends java.lang.Object
    implements TemporalField<N,​java.time.LocalDate>
    Each instance represents a type of field which can be extracted from a LocalDate.
    Since:
    3.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static LocalDateField<java.lang.Integer> DAY
      The calendar day of the month, numbered from 1.
      static LocalDateField<java.lang.Integer> MONTH
      The calendar month of the year, numbered from 1.
      private java.lang.String name  
      static LocalDateField<java.lang.Integer> QUARTER
      The calendar quarter, numbered from 1 to 4.
      static LocalDateField<java.lang.Integer> WEEK
      The ISO-8601 week number.
      static LocalDateField<java.lang.Integer> YEAR
      The calendar year.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LocalDateField​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
      • YEAR

        public static final LocalDateField<java.lang.Integer> YEAR
        The calendar year.
      • QUARTER

        public static final LocalDateField<java.lang.Integer> QUARTER
        The calendar quarter, numbered from 1 to 4.
      • MONTH

        public static final LocalDateField<java.lang.Integer> MONTH
        The calendar month of the year, numbered from 1.
      • WEEK

        public static final LocalDateField<java.lang.Integer> WEEK
        The ISO-8601 week number.
      • DAY

        public static final LocalDateField<java.lang.Integer> DAY
        The calendar day of the month, numbered from 1.
    • Constructor Detail

      • LocalDateField

        private LocalDateField​(java.lang.String name)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object