Record Class JHipsterModuleFile
java.lang.Object
java.lang.Record
tech.jhipster.lite.module.domain.file.JHipsterModuleFile
public record JHipsterModuleFile(tech.jhipster.lite.module.domain.file.JHipsterFileContent content, JHipsterDestination destination, boolean executable)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJHipsterModuleFile(tech.jhipster.lite.module.domain.file.JHipsterFileContent content, JHipsterDestination destination, boolean executable) Creates an instance of aJHipsterModuleFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptiontech.jhipster.lite.module.domain.file.JHipsterFileContentcontent()Returns the value of thecontentrecord component.Returns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexecutablerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JHipsterModuleFile
public JHipsterModuleFile(tech.jhipster.lite.module.domain.file.JHipsterFileContent content, JHipsterDestination destination, boolean executable) Creates an instance of aJHipsterModuleFilerecord class.- Parameters:
content- the value for thecontentrecord componentdestination- the value for thedestinationrecord componentexecutable- the value for theexecutablerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
content
public tech.jhipster.lite.module.domain.file.JHipsterFileContent content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
executable
public boolean executable()Returns the value of theexecutablerecord component.- Returns:
- the value of the
executablerecord component
-