Enum Class EntryConcatMethod

java.lang.Object
java.lang.Enum<EntryConcatMethod>
org.sentrysoftware.metricshub.engine.connector.model.common.EntryConcatMethod
All Implemented Interfaces:
Serializable, Comparable<EntryConcatMethod>, Constable, IEntryConcatMethod

public enum EntryConcatMethod extends Enum<EntryConcatMethod> implements IEntryConcatMethod
Represents different methods for concatenating entries in a connector.
  • Enum Constant Details

    • LIST

      public static final EntryConcatMethod LIST
      Concatenation using a list.
    • JSON_ARRAY

      public static final EntryConcatMethod JSON_ARRAY
      Concatenation using a JSON array.
    • JSON_ARRAY_EXTENDED

      public static final EntryConcatMethod JSON_ARRAY_EXTENDED
      Concatenation using an extended JSON array.
  • Field Details

  • Method Details

    • values

      public static EntryConcatMethod[] 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 EntryConcatMethod 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
    • getByName

      public static EntryConcatMethod getByName(@NonNull @NonNull String name)
      Get EntryConcatMethod by name, the name defined in the connector code.
      Parameters:
      name - The name of the concatenation method.
      Returns:
      EntryConcatMethod instance.
      Throws:
      IllegalArgumentException - if an invalid name is provided.
    • copy

      public IEntryConcatMethod copy()
      Description copied from interface: IEntryConcatMethod
      Creates a deep copy of the current IEntryConcatMethod instance.
      Specified by:
      copy in interface IEntryConcatMethod
      Returns:
      A new instance of IEntryConcatMethod representing a copy of the original instance.
    • getDescription

      public String getDescription()
      Description copied from interface: IEntryConcatMethod
      Gets a human-readable description of the entry concatenation method.
      Specified by:
      getDescription in interface IEntryConcatMethod
      Returns:
      A string representing the description of the entry concatenation method.