Record Class ReportMetadata
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.ReportMetadata
- Record Components:
title- 標題- 作者subject- 主旨keywords- 關鍵字language- 文件語言createdAt- 建立時間;固定此值可讓輸出可重現
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keywords()Returns the value of thekeywordsrecord component.language()Returns the value of thelanguagerecord component.subject()Returns the value of thesubjectrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReportMetadata
public ReportMetadata(String title, String author, String subject, List<String> keywords, Locale language, Instant createdAt) Creates an instance of aReportMetadatarecord class.- Parameters:
title- the value for thetitlerecord componentauthor- the value for theauthorrecord componentsubject- the value for thesubjectrecord componentkeywords- the value for thekeywordsrecord componentlanguage- the value for thelanguagerecord componentcreatedAt- the value for thecreatedAtrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
title
-
author
-
subject
-
keywords
-
language
-
createdAt
-