Record Class StringValidityScore
java.lang.Object
java.lang.Record
ghidra.app.services.StringValidityScore
- Record Components:
originalString- string being scoredtransformedString- original string, after being tweakedscore- string's validity score, larger values are more validthreshold- score that this string would need to exceed to be considered valid
public record StringValidityScore(String originalString, String transformedString, double score, double threshold)
extends Record
Result of a
StringValidatorService's judgment about a string.-
Constructor Summary
ConstructorsConstructorDescriptionStringValidityScore(String originalString, String transformedString, double score, double threshold) Creates an instance of aStringValidityScorerecord 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.booleanstatic StringValidityScoreReturns the value of theoriginalStringrecord component.doublescore()Returns the value of thescorerecord component.doubleReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformedStringrecord component.
-
Constructor Details
-
StringValidityScore
public StringValidityScore(String originalString, String transformedString, double score, double threshold) Creates an instance of aStringValidityScorerecord class.- Parameters:
originalString- the value for theoriginalStringrecord componenttransformedString- the value for thetransformedStringrecord componentscore- the value for thescorerecord componentthreshold- the value for thethresholdrecord component
-
-
Method Details
-
makeDummyFor
-
isScoreAboveThreshold
public boolean isScoreAboveThreshold() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
originalString
Returns the value of theoriginalStringrecord component.- Returns:
- the value of the
originalStringrecord component
-
transformedString
Returns the value of thetransformedStringrecord component.- Returns:
- the value of the
transformedStringrecord component
-
score
-
threshold
-