Record Class FileLink
java.lang.Object
java.lang.Record
org.ek9lang.cli.coverage.model.FileLink
- Record Components:
start- The opening part of the link text before the line numberend- The closing part of the link text after the line numberhref- The href attribute value for the anchor tag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasLink()Check if this represents an actual link or just plain text.href()Returns the value of thehrefrecord component.static FileLinkCreate a FileLink with no link (plain text display).start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileLink
-
-
Method Details
-
plainText
-
hasLink
public boolean hasLink()Check if this represents an actual link or just plain text.- Returns:
- true if this has a valid href for linking
-
toString
-
hashCode
-
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). -
start
-
end
-
href
-