Class LocalTimeField<N>

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

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

      Fields 
      Modifier and Type Field Description
      static LocalTimeField<java.lang.Integer> HOUR
      The hour of the day in 24-hour time, numbered from 0 to 23.
      static LocalTimeField<java.lang.Integer> MINUTE
      The minute of the hour, numbered from 0 to 59.
      private java.lang.String name  
      static LocalTimeField<java.lang.Double> SECOND
      The second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LocalTimeField​(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
      • HOUR

        public static final LocalTimeField<java.lang.Integer> HOUR
        The hour of the day in 24-hour time, numbered from 0 to 23.
      • MINUTE

        public static final LocalTimeField<java.lang.Integer> MINUTE
        The minute of the hour, numbered from 0 to 59.
      • SECOND

        public static final LocalTimeField<java.lang.Double> SECOND
        The second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second
    • Constructor Detail

      • LocalTimeField

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

      • toString

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