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
ConstructorsConstructorDescriptionResolvedValues(int style, int foreground, int background) Creates an instance of aResolvedValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebackgroundrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theforegroundrecord component.final inthashCode()Returns a hash code value for this object.intstyle()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedValues
public ResolvedValues(int style, int foreground, int background) Creates an instance of aResolvedValuesrecord class.- Parameters:
style- the value for thestylerecord componentforeground- the value for theforegroundrecord componentbackground- the value for thebackgroundrecord 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 thestylerecord component.- Returns:
- the value of the
stylerecord component
-
foreground
public int foreground()Returns the value of theforegroundrecord component.- Returns:
- the value of the
foregroundrecord component
-
background
public int background()Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-