Record Class TemplateSource
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.lens.TemplateSource
- Record Components:
label- identifies this contributor for the auto-namespacing suffix applied to a colliding template idtemplates- the templates this contributor provides
One contributor of
Templates to be merged by TemplateResolver: either this
plugin's own bundled built-in template, or one resolved lensStyle dependency's templates.
Unlike LensSource, there is no trackerLens.lensStylesheet-equivalent
single-file contributor here - a template is only ever offered through a lens pack (built-in or
external), per listTrackerLensTemplates's own scope; a project's own one-off template
still goes through the existing, unrelated trackerLens.template file property, entirely
outside this discovery mechanism.
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateSource(String label, List<Template> templates) Creates an instance of aTemplateSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.Returns the value of thetemplatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
templates
Returns the value of thetemplatesrecord component.- Returns:
- the value of the
templatesrecord component
-