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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecatalogFilerecord component.Returns the value of theeditableFilerecord component.intentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfound()Returns the value of thefoundrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionsrecord component.orders()Returns the value of theordersrecord component.pins()Returns the value of thepinsrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkingDirectoryrecord component.
-
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 aStatusrecord class.- Parameters:
workingDirectory- the value for theworkingDirectoryrecord componentcatalogFile- the value for thecatalogFilerecord componentsource- the value for thesourcerecord componenteditableFile- the value for theeditableFilerecord componentfound- the value for thefoundrecord componententries- the value for theentriesrecord componentorders- the value for theordersrecord componentpins- the value for thepinsrecord componentinstructions- the value for theinstructionsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
workingDirectory
Returns the value of theworkingDirectoryrecord component.- Returns:
- the value of the
workingDirectoryrecord component
-
catalogFile
Returns the value of thecatalogFilerecord component.- Returns:
- the value of the
catalogFilerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
editableFile
Returns the value of theeditableFilerecord component.- Returns:
- the value of the
editableFilerecord component
-
found
public boolean found()Returns the value of thefoundrecord component.- Returns:
- the value of the
foundrecord component
-
entries
public int entries()Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
orders
-
pins
-
instructions
-