Package com.io7m.certusine.api
Record Class CSConfigurationParameterDescription
java.lang.Object
java.lang.Record
com.io7m.certusine.api.CSConfigurationParameterDescription
- Record Components:
name- The parameter namedescription- The parameter descriptionformat- The parameter formatrequired-trueif the parameter is required
public record CSConfigurationParameterDescription(String name, String description, String format, boolean required)
extends Record
The description of a configuration parameter.
-
Constructor Summary
ConstructorsConstructorDescriptionCSConfigurationParameterDescription(String name, String description, String format, boolean required) The description of a configuration parameter. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CSConfigurationParameterDescription
public CSConfigurationParameterDescription(String name, String description, String format, boolean required) The description of a configuration parameter.- Parameters:
name- The parameter namedescription- The parameter descriptionformat- The parameter formatrequired-trueif the parameter is required
-
-
Method Details
-
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. -
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. -
equals
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-