Package org.springframework.shell.style
Record Class ThemeResolver.ResolvedValues
java.lang.Object
java.lang.Record
org.springframework.shell.style.ThemeResolver.ResolvedValues
- Enclosing class:
- ThemeResolver
public static record ThemeResolver.ResolvedValues(int style, int foreground, int background)
extends Record
Stores resolved values for
ThemeResolver.resolveValues(AttributedStyle)
.-
Constructor Summary
ConstructorDescriptionResolvedValues
(int style, int foreground, int background) Creates an instance of aResolvedValues
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thebackground
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of theforeground
record component.final int
hashCode()
Returns a hash code value for this object.int
style()
Returns the value of thestyle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ResolvedValues
public ResolvedValues(int style, int foreground, int background) Creates an instance of aResolvedValues
record class.- Parameters:
style
- the value for thestyle
record componentforeground
- the value for theforeground
record componentbackground
- the value for thebackground
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
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 with '=='. -
style
public int style()Returns the value of thestyle
record component.- Returns:
- the value of the
style
record component
-
foreground
public int foreground()Returns the value of theforeground
record component.- Returns:
- the value of the
foreground
record component
-
background
public int background()Returns the value of thebackground
record component.- Returns:
- the value of the
background
record component
-