Package com.tnsai.context.snapshot
Record Class SnapshotDiff.DiffSummary
java.lang.Object
java.lang.Record
com.tnsai.context.snapshot.SnapshotDiff.DiffSummary
- Enclosing class:
SnapshotDiff
public static record SnapshotDiff.DiffSummary(int bdiAdded, int bdiRemoved, int entitiesAdded, int entitiesRemoved, int variableChanges, Duration timeElapsed)
extends Record
Summary of changes between snapshots.
-
Constructor Summary
ConstructorsConstructorDescriptionDiffSummary(int bdiAdded, int bdiRemoved, int entitiesAdded, int entitiesRemoved, int variableChanges, Duration timeElapsed) Creates an instance of aDiffSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbdiAdded()Returns the value of thebdiAddedrecord component.intReturns the value of thebdiRemovedrecord component.intReturns the value of theentitiesAddedrecord component.intReturns the value of theentitiesRemovedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetimeElapsedrecord component.toString()Returns a string representation of this record class.intintintReturns the value of thevariableChangesrecord component.
-
Constructor Details
-
DiffSummary
public DiffSummary(int bdiAdded, int bdiRemoved, int entitiesAdded, int entitiesRemoved, int variableChanges, Duration timeElapsed) Creates an instance of aDiffSummaryrecord class.- Parameters:
bdiAdded- the value for thebdiAddedrecord componentbdiRemoved- the value for thebdiRemovedrecord componententitiesAdded- the value for theentitiesAddedrecord componententitiesRemoved- the value for theentitiesRemovedrecord componentvariableChanges- the value for thevariableChangesrecord componenttimeElapsed- the value for thetimeElapsedrecord component
-
-
Method Details
-
totalBDIChanges
public int totalBDIChanges() -
totalEntityChanges
public int totalEntityChanges() -
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 '=='. -
bdiAdded
public int bdiAdded()Returns the value of thebdiAddedrecord component.- Returns:
- the value of the
bdiAddedrecord component
-
bdiRemoved
public int bdiRemoved()Returns the value of thebdiRemovedrecord component.- Returns:
- the value of the
bdiRemovedrecord component
-
entitiesAdded
public int entitiesAdded()Returns the value of theentitiesAddedrecord component.- Returns:
- the value of the
entitiesAddedrecord component
-
entitiesRemoved
public int entitiesRemoved()Returns the value of theentitiesRemovedrecord component.- Returns:
- the value of the
entitiesRemovedrecord component
-
variableChanges
public int variableChanges()Returns the value of thevariableChangesrecord component.- Returns:
- the value of the
variableChangesrecord component
-
timeElapsed
Returns the value of thetimeElapsedrecord component.- Returns:
- the value of the
timeElapsedrecord component
-