Record Class ThemeTokens.Token
java.lang.Object
java.lang.Record
com.iizix.prop.ThemeTokens.Token
- Record Components:
slug- The name a theme file uses, the custom property without--iz-.css- The custom property, e.g.--iz-r.kind- The kind of value.description- What the token is, as the Designer shows it.
- Enclosing class:
ThemeTokens
public static record ThemeTokens.Token(String slug, String css, ThemeTokens.Kind kind, String description) extends Record
A token.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionToken(String slug, String css, ThemeTokens.Kind kind, String description) Creates an instance of aTokenrecord class.Method Summary
Modifier and TypeMethodDescriptioncss()Returns the value of thecssrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.slug()Returns the value of theslugrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Token
Creates an instance of aTokenrecord class.- Parameters:
slug- the value for theslugrecord componentcss- the value for thecssrecord componentkind- the value for thekindrecord componentdescription- the value for thedescriptionrecord 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).slug
css
kind
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component