Record Class ProgramLicences.LicenceFile
java.lang.Object
java.lang.Record
org.ek9lang.core.ProgramLicences.LicenceFile
- Enclosing class:
ProgramLicences
One licence file: its name (one of
ProgramLicences.FILE_NAMES) and its bytes.-
Constructor Summary
ConstructorsConstructorDescriptionLicenceFile(String name, byte[] content) Creates an instance of aLicenceFilerecord 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.name()Returns the value of thenamerecord component.text()The text, as UTF-8.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LicenceFile
Creates an instance of aLicenceFilerecord class.- Parameters:
name- the value for thenamerecord componentcontent- the value for thecontentrecord component
-
-
Method Details
-
text
The text, as UTF-8. -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
content
public byte[] content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-