Enum Class NilPolicy

java.lang.Object
java.lang.Enum<NilPolicy>
com.github.palindromicity.syslog.NilPolicy
All Implemented Interfaces:
Serializable, Comparable<NilPolicy>, java.lang.constant.Constable

public enum NilPolicy extends Enum<NilPolicy>
Policies available for handling NIL '-' values.
  • Enum Constant Details

    • OMIT

      public static final NilPolicy OMIT
      a nil value will result msg part being omitted from the map.
    • NULL

      public static final NilPolicy NULL
      a nil value will result in a null value in the map.
    • DASH

      public static final NilPolicy DASH
      a nil value will result in a '-' symbol in the map.
  • Method Details

    • values

      public static NilPolicy[] 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 NilPolicy 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