Record Class ECtransOptionValidation.Requirement
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.ECtransOptionValidation.Requirement
- Enclosing class:
ECtransOptionValidation
public static record ECtransOptionValidation.Requirement(String when, String parameter, ECtransOptionValidation.Check check, String value)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRequirement(String when, String parameter, ECtransOptionValidation.Check check, String value) Creates an instance of aRequirementrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncheck()Returns the value of thecheckrecord component.final booleanIndicates whether some other object is "equal to" this one.expected()final inthashCode()Returns a hash code value for this object.Returns the value of theparameterrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.when()Returns the value of thewhenrecord component.
-
Constructor Details
-
Requirement
public Requirement(String when, String parameter, ECtransOptionValidation.Check check, String value) Creates an instance of aRequirementrecord class.- Parameters:
when- the value for thewhenrecord componentparameter- the value for theparameterrecord componentcheck- the value for thecheckrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
expected
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
when
Returns the value of thewhenrecord component.- Returns:
- the value of the
whenrecord component
-
parameter
Returns the value of theparameterrecord component.- Returns:
- the value of the
parameterrecord component
-
check
Returns the value of thecheckrecord component.- Returns:
- the value of the
checkrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-