Record Class LValidationProblemType.ImageMissingRequiredCaption
java.lang.Object
java.lang.Record
com.io7m.laurel.filemodel.LValidationProblemType.ImageMissingRequiredCaption
- Record Components:
image- The imagecategory- The categorymessage- The message
- All Implemented Interfaces:
LValidationProblemType
- Enclosing interface:
LValidationProblemType
public static record LValidationProblemType.ImageMissingRequiredCaption(LImageID image, LCategoryID category, String message)
extends Record
implements LValidationProblemType
An image is missing a caption from a required category.
-
Nested Class Summary
Nested classes/interfaces inherited from interface LValidationProblemType
LValidationProblemType.ImageMissingRequiredCaption -
Constructor Summary
ConstructorsConstructorDescriptionImageMissingRequiredCaption(LImageID image, LCategoryID category, String message) An image is missing a caption from a required category. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImageMissingRequiredCaption
An image is missing a caption from a required category.- Parameters:
image- The imagecategory- The categorymessage- The message
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
image
-
category
-
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceLValidationProblemType- Returns:
- the value of the
messagerecord component
-