Enum Class ComparisonCriterion.Factory

java.lang.Object
java.lang.Enum<ComparisonCriterion.Factory>
org.tweetyproject.arg.delp.semantics.ComparisonCriterion.Factory
All Implemented Interfaces:
Serializable, Comparable<ComparisonCriterion.Factory>, Constable
Enclosing class:
ComparisonCriterion

public static enum ComparisonCriterion.Factory extends Enum<ComparisonCriterion.Factory>
Enumeration of factory types for creating instances of ComparisonCriterion subclasses.
Author:
Matthias Thimm
  • Enum Constant Details

  • Method Details

    • values

      public static ComparisonCriterion.Factory[] 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 ComparisonCriterion.Factory 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
    • create

      public static ComparisonCriterion create(String name)
      Creates an instance of a ComparisonCriterion subclass based on the provided name.

      The name should correspond to one of the factory types defined in this enum. If the name does not match any of the defined factory types, an IllegalArgumentException is thrown.

      Parameters:
      name - The name of the factory type, which should be one of the enum constants (EMPTY, GEN_SPEC, or PRIORITY).
      Returns:
      An instance of the corresponding ComparisonCriterion subclass.
      Throws:
      IllegalArgumentException - if the provided name does not match any of the defined factory types.