Enum Class Rounding

java.lang.Object
java.lang.Enum<Rounding>
org.jboss.elemento.intl.Rounding
All Implemented Interfaces:
Serializable, Comparable<Rounding>, Constable

public enum Rounding extends Enum<Rounding>
  • Enum Constant Details

    • auto

      public static final Rounding auto
    • ceil

      public static final Rounding ceil
    • expand

      public static final Rounding expand
    • floor

      public static final Rounding floor
    • halfCeil

      public static final Rounding halfCeil
    • halfEven

      public static final Rounding halfEven
    • halfExpand

      public static final Rounding halfExpand
    • halfFloor

      public static final Rounding halfFloor
    • halfTrunc

      public static final Rounding halfTrunc
    • lessPrecision

      public static final Rounding lessPrecision
    • morePrecision

      public static final Rounding morePrecision
    • trunc

      public static final Rounding trunc
  • Field Details

    • value

      public final String value
  • Method Details

    • values

      public static Rounding[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Rounding valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null