Package com.io7m.laurel.filemodel
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 com.io7m.laurel.filemodel.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.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceLValidationProblemType- Returns:
- the value of the
messagerecord component
-