Package com.vaadin.copilot.iconset
Record Class IconInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.iconset.IconInfo
- Record Components:
label- the human-readable label for the iconname- the icon constant or identifier nameiconAttr- the value used in the icon attribute, ornullif the icon is resolved by SVG source URLsvgSourceUrl- the SVG source URL for the icon, ornullwhen not applicable
public record IconInfo(String label, String name, String iconAttr, String svgSourceUrl)
extends Record
Immutable metadata for a single icon entry in an icon set.
-
Constructor Summary
Constructors -
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.iconAttr()Returns the value of theiconAttrrecord component.label()Returns the value of thelabelrecord component.name()Returns the value of thenamerecord component.Returns the value of thesvgSourceUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IconInfo
Creates an instance of aIconInforecord class.- Parameters:
label- the value for thelabelrecord componentname- the value for thenamerecord componenticonAttr- the value for theiconAttrrecord componentsvgSourceUrl- the value for thesvgSourceUrlrecord component
-
-
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). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
iconAttr
Returns the value of theiconAttrrecord component.- Returns:
- the value of the
iconAttrrecord component
-
svgSourceUrl
Returns the value of thesvgSourceUrlrecord component.- Returns:
- the value of the
svgSourceUrlrecord component
-