Package ghidra.app.services
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
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 '=='. -
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
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
threshold
public double threshold()Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-