Package lib.aide.paths
Record Class PathsHtml.HtmlContent
java.lang.Object
java.lang.Record
lib.aide.paths.PathsHtml.HtmlContent
public static record PathsHtml.HtmlContent(Optional<String> labelHtml, Optional<Map<String,String>> liAttrs, Optional<Map<String,String>> detailsAttrs, Optional<Map<String,String>> summaryAttrs, Optional<Map<String,String>> anchorAttrs)
extends Record
Record to hold HTML content details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanchorAttrs
record component.Returns the value of thedetailsAttrs
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelabelHtml
record component.liAttrs()
Returns the value of theliAttrs
record component.Returns the value of thesummaryAttrs
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
HtmlContent
public HtmlContent(Optional<String> labelHtml, Optional<Map<String, String>> liAttrs, Optional<Map<String, String>> detailsAttrs, Optional<Map<String, String>> summaryAttrs, Optional<Map<String, String>> anchorAttrs) Constructor for HtmlContent record.- Parameters:
labelHtml
- the HTML content for the labelliAttrs
- the attributes for the- tag
detailsAttrs
- the attributes for thetagsummaryAttrs
- the attributes for thetag anchorAttrs
- the attributes for the tag
-
-
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)
. -
labelHtml
Returns the value of thelabelHtml
record component.- Returns:
- the value of the
labelHtml
record component
-
liAttrs
Returns the value of theliAttrs
record component.- Returns:
- the value of the
liAttrs
record component
-
detailsAttrs
Returns the value of thedetailsAttrs
record component.- Returns:
- the value of the
detailsAttrs
record component
-
summaryAttrs
Returns the value of thesummaryAttrs
record component.- Returns:
- the value of the
summaryAttrs
record component
-
anchorAttrs
Returns the value of theanchorAttrs
record component.- Returns:
- the value of the
anchorAttrs
record component
-