Record Class ColorRoles.Role
java.lang.Object
java.lang.Record
com.iizix.prop.ColorRoles.Role
- Record Components:
name- The role name, e.g.NormalBackground.css- The custom property, e.g.--iz-bg.group- The group, e.g.ColorRoles.Group.SURFACE.
- Enclosing class:
ColorRoles
public static record ColorRoles.Role(String name, String css, ColorRoles.Group group) extends Record
A color role: its name as the Designer shows it, the CSS custom property it becomes, and the group of the vocabulary table it belongs to.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionRole(String name, String css, ColorRoles.Group group) Creates an instance of aRolerecord class.Method Summary
Modifier and TypeMethodDescriptioncss()Returns the value of thecssrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Role
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).name
css
group