Record Class EndOfFileReplacer
java.lang.Object
java.lang.Record
tech.jhipster.lite.module.domain.replacement.EndOfFileReplacer
- Record Components:
condition-
- All Implemented Interfaces:
ElementReplacer
public record EndOfFileReplacer(ReplacementCondition condition)
extends Record
implements ElementReplacer
ElementReplacer that inserts content at end of the file if the provided condition is met-
Constructor Summary
ConstructorsConstructorDescriptionEndOfFileReplacer(ReplacementCondition condition) Creates an instance of aEndOfFileReplacerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleannotMatchIn(String content) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tech.jhipster.lite.module.domain.replacement.ElementReplacer
dontNeedReplacement
-
Constructor Details
-
EndOfFileReplacer
Creates an instance of aEndOfFileReplacerrecord class.- Parameters:
condition- the value for theconditionrecord component
-
-
Method Details
-
notMatchIn
- Specified by:
notMatchInin interfaceElementReplacer
-
replacement
- Specified by:
replacementin interfaceElementReplacer
-
searchMatcher
- Specified by:
searchMatcherin interfaceElementReplacer
-
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). -
condition
Returns the value of theconditionrecord component.- Specified by:
conditionin interfaceElementReplacer- Returns:
- the value of the
conditionrecord component
-