Record Class Lens
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.lens.Lens
- Record Components:
id- the lens id: the CSS file's base name, lower-casedcontent- the raw CSS file bytes
A single style pack lens, as discovered by
LensScanner: its id (the lens file's base
name, lower-cased) and its CSS content.
Content is read eagerly into memory at scan time rather than kept as a File, since a
lens discovered inside a jar has no standalone File of its own - reading eagerly lets a
directory-backed and a jar-backed lens be represented identically.
-
Constructor Summary
Constructors -
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.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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
content
public byte[] content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-