Record Class Utilities.GenericPatch
java.lang.Object
java.lang.Record
com.gtnewhorizons.retrofuturagradle.util.Utilities.GenericPatch
- Enclosing class:
Utilities
-
Constructor Summary
ConstructorsConstructorDescriptionGenericPatch(String zipEntry, String containsFilter, String toReplace, String replaceWith) Creates an instance of aGenericPatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainsFilterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereplaceWithrecord component.Returns the value of thetoReplacerecord component.final StringtoString()Returns a string representation of this record class.zipEntry()Returns the value of thezipEntryrecord component.
-
Constructor Details
-
GenericPatch
Creates an instance of aGenericPatchrecord class.- Parameters:
zipEntry- the value for thezipEntryrecord componentcontainsFilter- the value for thecontainsFilterrecord componenttoReplace- the value for thetoReplacerecord componentreplaceWith- the value for thereplaceWithrecord component
-
-
Method Details
-
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). -
zipEntry
Returns the value of thezipEntryrecord component.- Returns:
- the value of the
zipEntryrecord component
-
containsFilter
Returns the value of thecontainsFilterrecord component.- Returns:
- the value of the
containsFilterrecord component
-
toReplace
Returns the value of thetoReplacerecord component.- Returns:
- the value of the
toReplacerecord component
-
replaceWith
Returns the value of thereplaceWithrecord component.- Returns:
- the value of the
replaceWithrecord component
-