Record Class StringReplacer
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.helpers.StringReplacer
Helper class to help with search and replace while evaluating formula.
- Author:
- thoma
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStringReplacer(String searchString, Integer modifier) Creates an instance of aStringReplacerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modifier()Returns the value of themodifierrecord component.Returns the value of thesearchStringrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
StringReplacerComparatorDesc
-
-
Constructor Details
-
StringReplacer
Creates an instance of aStringReplacerrecord class.- Parameters:
searchString- the value for thesearchStringrecord componentmodifier- the value for themodifierrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
searchString
Returns the value of thesearchStringrecord component.- Returns:
- the value of the
searchStringrecord component
-
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-