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
ConstructorDescriptionStringValidityScore
(String originalString, String transformedString, double score, double threshold) Creates an instance of aStringValidityScore
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
static StringValidityScore
Returns the value of theoriginalString
record component.double
score()
Returns the value of thescore
record component.double
Returns the value of thethreshold
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransformedString
record component.
-
Constructor Details
-
StringValidityScore
public StringValidityScore(String originalString, String transformedString, double score, double threshold) Creates an instance of aStringValidityScore
record class.- Parameters:
originalString
- the value for theoriginalString
record componenttransformedString
- the value for thetransformedString
record componentscore
- the value for thescore
record componentthreshold
- the value for thethreshold
record 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 theoriginalString
record component.- Returns:
- the value of the
originalString
record component
-
transformedString
Returns the value of thetransformedString
record component.- Returns:
- the value of the
transformedString
record component
-
score
public double score()Returns the value of thescore
record component.- Returns:
- the value of the
score
record component
-
threshold
public double threshold()Returns the value of thethreshold
record component.- Returns:
- the value of the
threshold
record component
-