Enum Precision

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Precision>

    public enum Precision
    extends java.lang.Enum<Precision>
    • Method Detail

      • values

        public static Precision[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Precision c : Precision.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Precision valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toChronoField

        public java.time.temporal.ChronoField toChronoField()
      • toChronoUnit

        public java.time.temporal.ChronoUnit toChronoUnit()
      • toDateIndex

        public int toDateIndex()
      • toDateTimeIndex

        public int toDateTimeIndex()
      • toTimeIndex

        public int toTimeIndex()
      • getNextPrecision

        public Precision getNextPrecision()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Precision>
      • fromString

        public static Precision fromString​(java.lang.String precision)
      • fromDateIndex

        public static Precision fromDateIndex​(int index)
      • fromDateTimeIndex

        public static Precision fromDateTimeIndex​(int index)
      • fromTimeIndex

        public static Precision fromTimeIndex​(int index)
      • getDateChronoFieldFromIndex

        public static java.time.temporal.ChronoField getDateChronoFieldFromIndex​(int index)
      • getDateTimeChronoFieldFromIndex

        public static java.time.temporal.ChronoField getDateTimeChronoFieldFromIndex​(int index)
      • getTimeChronoFieldFromIndex

        public static java.time.temporal.ChronoField getTimeChronoFieldFromIndex​(int index)