Package org.ametys.cms.color
Record Class AbstractColorsComponent.ColorsDefinition
java.lang.Object
java.lang.Record
org.ametys.cms.color.AbstractColorsComponent.ColorsDefinition
- Record Components:
defaultKey
- the default color keycolors
- the colorscolorClass
- the color class
- Enclosing class:
- AbstractColorsComponent
protected static record AbstractColorsComponent.ColorsDefinition(String defaultKey, Map<String,Map<String,String>> colors, String colorClass)
extends Record
Class representing a colors definition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolorClass
record component.colors()
Returns the value of thecolors
record component.Returns the value of thedefaultKey
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.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ColorsDefinition
protected ColorsDefinition(String defaultKey, Map<String, Map<String, String>> colors, String colorClass) Creates an instance of aColorsDefinition
record class.- Parameters:
defaultKey
- the value for thedefaultKey
record componentcolors
- the value for thecolors
record componentcolorClass
- the value for thecolorClass
record 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
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)
. -
defaultKey
Returns the value of thedefaultKey
record component.- Returns:
- the value of the
defaultKey
record component
-
colors
Returns the value of thecolors
record component.- Returns:
- the value of the
colors
record component
-
colorClass
Returns the value of thecolorClass
record component.- Returns:
- the value of the
colorClass
record component
-