Record Class ConfigVerifier.ConfigVerificationResult
java.lang.Object
java.lang.Record
com.zenith.util.config.ConfigVerifier.ConfigVerificationResult
- Enclosing class:
ConfigVerifier
-
Constructor Summary
ConstructorsConstructorDescriptionConfigVerificationResult(boolean pass, String msg) Creates an instance of aConfigVerificationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.msg()Returns the value of themsgrecord component.booleanpass()Returns the value of thepassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigVerificationResult
Creates an instance of aConfigVerificationResultrecord class.- Parameters:
pass- the value for thepassrecord componentmsg- the value for themsgrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pass
public boolean pass()Returns the value of thepassrecord component.- Returns:
- the value of the
passrecord component
-
msg
Returns the value of themsgrecord component.- Returns:
- the value of the
msgrecord component
-