Record Class ClassIntegrityResult
java.lang.Object
java.lang.Record
com.craftingdead.protect.client.integrity.ClassIntegrityResult
public record ClassIntegrityResult(String className, String expectedSource, String actualSource, boolean valid)
extends Record
Represents the integrity check result for a specific class.
-
Constructor Summary
ConstructorsConstructorDescriptionClassIntegrityResult(String className, String expectedSource, String actualSource, boolean valid) Creates an instance of aClassIntegrityResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualSourcerecord component.Returns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedSourcerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanvalid()Returns the value of thevalidrecord component.
-
Constructor Details
-
ClassIntegrityResult
public ClassIntegrityResult(String className, String expectedSource, String actualSource, boolean valid) Creates an instance of aClassIntegrityResultrecord class.- Parameters:
className- the value for theclassNamerecord componentexpectedSource- the value for theexpectedSourcerecord componentactualSource- the value for theactualSourcerecord componentvalid- the value for thevalidrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
expectedSource
Returns the value of theexpectedSourcerecord component.- Returns:
- the value of the
expectedSourcerecord component
-
actualSource
Returns the value of theactualSourcerecord component.- Returns:
- the value of the
actualSourcerecord component
-
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-