Record Class VCardImportActionResource.ValidationMessage
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.VCardImportActionResource.ValidationMessage
- Enclosing class:
VCardImportActionResource
-
Constructor Summary
ConstructorsConstructorDescriptionValidationMessage(boolean isValid, String message) Creates an instance of aValidationMessagerecord 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.booleanisValid()Returns the value of theisValidrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationMessage
Creates an instance of aValidationMessagerecord class.- Parameters:
isValid- the value for theisValidrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
valid
-
invalid
-
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. -
isValid
public boolean isValid()Returns the value of theisValidrecord component.- Returns:
- the value of the
isValidrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-