Record Class UltimatumSidePickerDialog.PickerChoice

java.lang.Object
java.lang.Record
mekhq.gui.dialog.factionStanding.UltimatumSidePickerDialog.PickerChoice
Record Components:
kind - what the card represents
sideIndex - the index of the ultimatum side this card represents, or -1 for a rogue card
code - the faction short name, shown in the card's code box and on its chip
title - the faction's name
subtitle - the person asking for support and their role, or a description of going rogue
pitch - the card's appeal to the player
tagRows - the consequence tags, worked out from the rules, grouped into one row per context
dissenterStays - true if 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 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 a PickerChoice record class.
      Parameters:
      kind - the value for the kind record component
      sideIndex - the value for the sideIndex record component
      code - the value for the code record component
      title - the value for the title record component
      subtitle - the value for the subtitle record component
      pitch - the value for the pitch record component
      tagRows - the value for the tagRows record component
      dissenterStays - the value for the dissenterStays record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • sideIndex

      public int sideIndex()
      Returns the value of the sideIndex record component.
      Returns:
      the value of the sideIndex record component
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • subtitle

      public String subtitle()
      Returns the value of the subtitle record component.
      Returns:
      the value of the subtitle record component
    • pitch

      public String pitch()
      Returns the value of the pitch record component.
      Returns:
      the value of the pitch record component
    • tagRows

      public List<List<HudCard.Tag>> tagRows()
      Returns the value of the tagRows record component.
      Returns:
      the value of the tagRows record component
    • dissenterStays

      public boolean dissenterStays()
      Returns the value of the dissenterStays record component.
      Returns:
      the value of the dissenterStays record component