Record Class ClientEnvironmentReport
java.lang.Object
java.lang.Record
com.craftingdead.protect.client.integrity.ClientEnvironmentReport
public record ClientEnvironmentReport(List<LoadedModInfo> mods, ModValidationResult modValidation, TransformationAnomalies transformIssues, List<ClassIntegrityResult> classIntegrity, long timestamp)
extends Record
Complete environment integrity report for the client.
Contains all collected information about mods, transformations, and class integrity.
-
Constructor Summary
ConstructorsConstructorDescriptionClientEnvironmentReport(List<LoadedModInfo> mods, ModValidationResult modValidation, TransformationAnomalies transformIssues, List<ClassIntegrityResult> classIntegrity, long timestamp) Creates an instance of aClientEnvironmentReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassIntegrityrecord component.final booleanIndicates whether some other object is "equal to" this one.intbooleanfinal inthashCode()Returns a hash code value for this object.mods()Returns the value of themodsrecord component.Returns the value of themodValidationrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformIssuesrecord component.
-
Constructor Details
-
ClientEnvironmentReport
public ClientEnvironmentReport(List<LoadedModInfo> mods, ModValidationResult modValidation, TransformationAnomalies transformIssues, List<ClassIntegrityResult> classIntegrity, long timestamp) Creates an instance of aClientEnvironmentReportrecord class.- Parameters:
mods- the value for themodsrecord componentmodValidation- the value for themodValidationrecord componenttransformIssues- the value for thetransformIssuesrecord componentclassIntegrity- the value for theclassIntegrityrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
hasAnyIssues
public boolean hasAnyIssues() -
getTotalIssueCount
public int getTotalIssueCount() -
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 '=='. -
mods
Returns the value of themodsrecord component.- Returns:
- the value of the
modsrecord component
-
modValidation
Returns the value of themodValidationrecord component.- Returns:
- the value of the
modValidationrecord component
-
transformIssues
Returns the value of thetransformIssuesrecord component.- Returns:
- the value of the
transformIssuesrecord component
-
classIntegrity
Returns the value of theclassIntegrityrecord component.- Returns:
- the value of the
classIntegrityrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-