Package ch.so.agi.gretl.lsp.metadata
Record Class GretlMetadata
java.lang.Object
java.lang.Record
ch.so.agi.gretl.lsp.metadata.GretlMetadata
public record GretlMetadata(String schemaVersion, String generatedAt, String gretlVersion, MetadataSource source, List<TaskMetadata> tasks)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGretlMetadata(String schemaVersion, String generatedAt, String gretlVersion, MetadataSource source, List<TaskMetadata> tasks) Creates an instance of aGretlMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GretlMetadataempty()final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratedAtrecord component.Returns the value of thegretlVersionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theschemaVersionrecord component.source()Returns the value of thesourcerecord component.tasks()Returns the value of thetasksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GretlMetadata
public GretlMetadata(String schemaVersion, String generatedAt, String gretlVersion, MetadataSource source, List<TaskMetadata> tasks) Creates an instance of aGretlMetadatarecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentgeneratedAt- the value for thegeneratedAtrecord componentgretlVersion- the value for thegretlVersionrecord componentsource- the value for thesourcerecord componenttasks- the value for thetasksrecord component
-
-
Method Details
-
empty
-
findTask
-
tasksSortedByName
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
generatedAt
Returns the value of thegeneratedAtrecord component.- Returns:
- the value of the
generatedAtrecord component
-
gretlVersion
Returns the value of thegretlVersionrecord component.- Returns:
- the value of the
gretlVersionrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-