Record Class ResolvedTemplate
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.lens.ResolvedTemplate
- Record Components:
id- the final template id offered bylistTrackerLensTemplatesand selectable viatrackerLens.templateIdsourceLabel- the label of theTemplateSourcethis template was resolved fromcontent- the raw Mustache template file bytes
A
Template after cross-pack merging by TemplateResolver: its final, possibly
auto-namespaced id, the label of the source it came from, and its Mustache content.-
Constructor Summary
ConstructorsConstructorDescriptionResolvedTemplate(String id, String sourceLabel, byte[] content) Creates an instance of aResolvedTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thesourceLabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedTemplate
Creates an instance of aResolvedTemplaterecord class.- Parameters:
id- the value for theidrecord componentsourceLabel- the value for thesourceLabelrecord componentcontent- the value for thecontentrecord component
-
-
Method Details
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
sourceLabel
Returns the value of thesourceLabelrecord component.- Returns:
- the value of the
sourceLabelrecord component
-
content
public byte[] content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-