Record Class DemoCatalog.Status

java.lang.Object
java.lang.Record
ai.redouble.demo.DemoCatalog.Status
Enclosing class:
DemoCatalog

public static record DemoCatalog.Status(String workingDirectory, String catalogFile, String source, String editableFile, boolean found, int entries, Map<String, List<String>> orders, Map<String,String> pins, List<String> instructions) extends Record
What the page and the startup log say about the catalog: the file the demo keeps it in (catalogFile, null when the process runs outside its module), where it was read from (null when nowhere, and the runtime is on the shipped defaults), the file the page's edits land in (null when the catalog in use is not a file of the deployment's own: the shipped defaults, or a copy packaged on the classpath), how many entries it has, each grade's order (its entries in the deployment's order of preference, the first the grade's default), the single pins (the embeddings and the decision entry), and the steps a person takes when something is missing.
Since:
0.1 (2026-09-17)
Author:
Andrey Santrosyan
  • Constructor Details

    • Status

      public Status(String workingDirectory, String catalogFile, String source, String editableFile, boolean found, int entries, Map<String, List<String>> orders, Map<String,String> pins, List<String> instructions)
      Creates an instance of a Status record class.
      Parameters:
      workingDirectory - the value for the workingDirectory record component
      catalogFile - the value for the catalogFile record component
      source - the value for the source record component
      editableFile - the value for the editableFile record component
      found - the value for the found record component
      entries - the value for the entries record component
      orders - the value for the orders record component
      pins - the value for the pins record component
      instructions - the value for the instructions 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.
    • workingDirectory

      public String workingDirectory()
      Returns the value of the workingDirectory record component.
      Returns:
      the value of the workingDirectory record component
    • catalogFile

      public String catalogFile()
      Returns the value of the catalogFile record component.
      Returns:
      the value of the catalogFile record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • editableFile

      public String editableFile()
      Returns the value of the editableFile record component.
      Returns:
      the value of the editableFile record component
    • found

      public boolean found()
      Returns the value of the found record component.
      Returns:
      the value of the found record component
    • entries

      public int entries()
      Returns the value of the entries record component.
      Returns:
      the value of the entries record component
    • orders

      public Map<String, List<String>> orders()
      Returns the value of the orders record component.
      Returns:
      the value of the orders record component
    • pins

      public Map<String,String> pins()
      Returns the value of the pins record component.
      Returns:
      the value of the pins record component
    • instructions

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