Record Class DecisionFigureTornado.Tornado

java.lang.Object
java.lang.Record
network.ike.docs.koncept.DecisionFigureTornado.Tornado
Record Components:
title - what the axis measures, printed above it
net - whether the axis is net value, so that zero is break-even and is drawn
chosen - how the alternative the base chose is named, for the legend; null when the base did not decide
base - where the axis stands with every measure at its base
least - the least the axis reaches over every bar, the base included
greatest - the greatest the axis reaches over every bar, the base included
bars - the bars, longest first, each with some length
notes - sentences for the footnote after the standard ones: what does not move the answer, what was not swept
Enclosing class:
DecisionFigureTornado

public static record DecisionFigureTornado.Tornado(String title, boolean net, String chosen, double base, double least, double greatest, List<DecisionFigureTornado.Bar> bars, List<String> notes) extends Record
The sweep as the tornado reads it.
  • Constructor Details

    • Tornado

      public Tornado(String title, boolean net, String chosen, double base, double least, double greatest, List<DecisionFigureTornado.Bar> bars, List<String> notes)
      Creates an instance of a Tornado record class.
      Parameters:
      title - the value for the title record component
      net - the value for the net record component
      chosen - the value for the chosen record component
      base - the value for the base record component
      least - the value for the least record component
      greatest - the value for the greatest record component
      bars - the value for the bars record component
      notes - the value for the notes 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 the compare method from their corresponding wrapper classes.
      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.
    • title

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

      public boolean net()
      Returns the value of the net record component.
      Returns:
      the value of the net record component
    • chosen

      public String chosen()
      Returns the value of the chosen record component.
      Returns:
      the value of the chosen record component
    • base

      public double base()
      Returns the value of the base record component.
      Returns:
      the value of the base record component
    • least

      public double least()
      Returns the value of the least record component.
      Returns:
      the value of the least record component
    • greatest

      public double greatest()
      Returns the value of the greatest record component.
      Returns:
      the value of the greatest record component
    • bars

      Returns the value of the bars record component.
      Returns:
      the value of the bars record component
    • notes

      public List<String> notes()
      Returns the value of the notes record component.
      Returns:
      the value of the notes record component