Record Class MassCredentialStatusChange.Report
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.emergency.MassCredentialStatusChange.Report
- Enclosing class:
MassCredentialStatusChange
public static record MassCredentialStatusChange.Report(int changed, int alreadyAtTarget, int notFound, int stale)
extends Record
Aggregate report of a mass status change. Counts only — the
report deliberately does not list affected usernames so the
incident-response output stream stays small and free of any
subject-level identifiers.
-
Constructor Summary
ConstructorsConstructorDescriptionReport(int changed, int alreadyAtTarget, int notFound, int stale) Creates an instance of aReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thealreadyAtTargetrecord component.intchanged()Returns the value of thechangedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnotFound()Returns the value of thenotFoundrecord component.intstale()Returns the value of thestalerecord component.final StringtoString()Returns a string representation of this record class.inttotal()
-
Constructor Details
-
Report
public Report(int changed, int alreadyAtTarget, int notFound, int stale) Creates an instance of aReportrecord class.- Parameters:
changed- the value for thechangedrecord componentalreadyAtTarget- the value for thealreadyAtTargetrecord componentnotFound- the value for thenotFoundrecord componentstale- the value for thestalerecord component
-
-
Method Details
-
total
public int total() -
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
changed
public int changed()Returns the value of thechangedrecord component.- Returns:
- the value of the
changedrecord component
-
alreadyAtTarget
public int alreadyAtTarget()Returns the value of thealreadyAtTargetrecord component.- Returns:
- the value of the
alreadyAtTargetrecord component
-
notFound
public int notFound()Returns the value of thenotFoundrecord component.- Returns:
- the value of the
notFoundrecord component
-
stale
public int stale()Returns the value of thestalerecord component.- Returns:
- the value of the
stalerecord component
-