Record Class DashboardView
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.dashboard.DashboardView
- Record Components:
trackers- the trackers to render, in registration orderlenses- every discovered lens, merged and auto-namespaced bycom.arc_e_tect.gradle.trackerlens.lens.LensResolverdefaultLensId- the lens id active on first loaddashboardName- the dashboard's displayed name, shown in the browser tab title and page headingversion- version shown alongsidedashboardName
public record DashboardView(List<TrackerView> trackers, List<ResolvedLens> lenses, String defaultLensId, String dashboardName, String version)
extends Record
Everything
DashboardHtmlWriter needs to render dashboard.html and one CSS file
per lens.-
Constructor Summary
ConstructorsConstructorDescriptionDashboardView(List<TrackerView> trackers, List<ResolvedLens> lenses, String defaultLensId, String dashboardName, String version) Creates an instance of aDashboardViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedashboardNamerecord component.Returns the value of thedefaultLensIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lenses()Returns the value of thelensesrecord component.final StringtoString()Returns a string representation of this record class.trackers()Returns the value of thetrackersrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
DashboardView
public DashboardView(List<TrackerView> trackers, List<ResolvedLens> lenses, String defaultLensId, String dashboardName, String version) Creates an instance of aDashboardViewrecord class.- Parameters:
trackers- the value for thetrackersrecord componentlenses- the value for thelensesrecord componentdefaultLensId- the value for thedefaultLensIdrecord componentdashboardName- the value for thedashboardNamerecord componentversion- the value for theversionrecord 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). -
trackers
Returns the value of thetrackersrecord component.- Returns:
- the value of the
trackersrecord component
-
lenses
Returns the value of thelensesrecord component.- Returns:
- the value of the
lensesrecord component
-
defaultLensId
Returns the value of thedefaultLensIdrecord component.- Returns:
- the value of the
defaultLensIdrecord component
-
dashboardName
Returns the value of thedashboardNamerecord component.- Returns:
- the value of the
dashboardNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-