Package mekhq.gui.dialog.factionStanding
Record Class UltimatumSidePickerDialog.PickerChoice
java.lang.Object
java.lang.Record
mekhq.gui.dialog.factionStanding.UltimatumSidePickerDialog.PickerChoice
- Record Components:
kind- what the card representssideIndex- the index of the ultimatum side this card represents, or-1for a rogue cardcode- the faction short name, shown in the card's code box and on its chiptitle- the faction's namesubtitle- the person asking for support and their role, or a description of going roguepitch- the card's appeal to the playertagRows- the consequence tags, worked out from the rules, grouped into one row per contextdissenterStays-trueif the dissenting officer stays with the unit on this choice
- Enclosing class:
UltimatumSidePickerDialog
public static record UltimatumSidePickerDialog.PickerChoice(UltimatumSidePickerDialog.ChoiceKind kind, int sideIndex, String code, String title, String subtitle, String pitch, List<List<HudCard.Tag>> tagRows, boolean dissenterStays)
extends Record
One card in the carousel, with everything needed to draw it.
- Since:
- 0.51.01
-
Constructor Summary
ConstructorsConstructorDescriptionPickerChoice(UltimatumSidePickerDialog.ChoiceKind kind, int sideIndex, String code, String title, String subtitle, String pitch, List<List<HudCard.Tag>> tagRows, boolean dissenterStays) Creates an instance of aPickerChoicerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.booleanReturns the value of thedissenterStaysrecord 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.pitch()Returns the value of thepitchrecord component.intReturns the value of thesideIndexrecord component.subtitle()Returns the value of thesubtitlerecord component.tagRows()Returns the value of thetagRowsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PickerChoice
public PickerChoice(UltimatumSidePickerDialog.ChoiceKind kind, int sideIndex, String code, String title, String subtitle, String pitch, List<List<HudCard.Tag>> tagRows, boolean dissenterStays) Creates an instance of aPickerChoicerecord class.- Parameters:
kind- the value for thekindrecord componentsideIndex- the value for thesideIndexrecord componentcode- the value for thecoderecord componenttitle- the value for thetitlerecord componentsubtitle- the value for thesubtitlerecord componentpitch- the value for thepitchrecord componenttagRows- the value for thetagRowsrecord componentdissenterStays- the value for thedissenterStaysrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
sideIndex
public int sideIndex()Returns the value of thesideIndexrecord component.- Returns:
- the value of the
sideIndexrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
pitch
Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
tagRows
Returns the value of thetagRowsrecord component.- Returns:
- the value of the
tagRowsrecord component
-
dissenterStays
public boolean dissenterStays()Returns the value of thedissenterStaysrecord component.- Returns:
- the value of the
dissenterStaysrecord component
-