Record Class AutoconfigSearchSpace.ParameterDescription

java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.autoconfig.service.AutoconfigSearchSpace.ParameterDescription
Enclosing class:
AutoconfigSearchSpace

public static record AutoconfigSearchSpace.ParameterDescription(String name, AutoconfigSearchSpace.ParameterKind kind, List<Object> values, Object minimum, Object maximum, Integer minItems, Integer maxItems, List<String> choices) extends Record
  • Constructor Details

    • ParameterDescription

      public ParameterDescription(String name, AutoconfigSearchSpace.ParameterKind kind, List<Object> values, Object minimum, Object maximum, Integer minItems, Integer maxItems, List<String> choices)
      Creates an instance of a ParameterDescription record class.
      Parameters:
      name - the value for the name record component
      kind - the value for the kind record component
      values - the value for the values record component
      minimum - the value for the minimum record component
      maximum - the value for the maximum record component
      minItems - the value for the minItems record component
      maxItems - the value for the maxItems record component
      choices - the value for the choices record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • values

      public List<Object> values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component
    • minimum

      public Object minimum()
      Returns the value of the minimum record component.
      Returns:
      the value of the minimum record component
    • maximum

      public Object maximum()
      Returns the value of the maximum record component.
      Returns:
      the value of the maximum record component
    • minItems

      public Integer minItems()
      Returns the value of the minItems record component.
      Returns:
      the value of the minItems record component
    • maxItems

      public Integer maxItems()
      Returns the value of the maxItems record component.
      Returns:
      the value of the maxItems record component
    • choices

      public List<String> choices()
      Returns the value of the choices record component.
      Returns:
      the value of the choices record component