Record Class SnapshotEvidence
java.lang.Object
java.lang.Record
dev.archunitjava.report.SnapshotEvidence
- All Implemented Interfaces:
Comparable<SnapshotEvidence>
public record SnapshotEvidence(String locationId, Optional<String> ownerMemberId, OptionalInt bytecodeOffset, Optional<String> sourceFile, OptionalInt lineNumber)
extends Record
implements Comparable<SnapshotEvidence>
Detached evidence value retained for report drill-down.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotEvidence(String locationId, Optional<String> ownerMemberId, OptionalInt bytecodeOffset, Optional<String> sourceFile, OptionalInt lineNumber) Creates an instance of aSnapshotEvidencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebytecodeOffsetrecord component.intcompareTo(SnapshotEvidence other) 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 thelineNumberrecord component.Returns the value of thelocationIdrecord component.Returns the value of theownerMemberIdrecord component.Returns the value of thesourceFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SnapshotEvidence
public SnapshotEvidence(String locationId, Optional<String> ownerMemberId, OptionalInt bytecodeOffset, Optional<String> sourceFile, OptionalInt lineNumber) Creates an instance of aSnapshotEvidencerecord class.- Parameters:
locationId- the value for thelocationIdrecord componentownerMemberId- the value for theownerMemberIdrecord componentbytecodeOffset- the value for thebytecodeOffsetrecord componentsourceFile- the value for thesourceFilerecord componentlineNumber- the value for thelineNumberrecord component
-
-
Method Details
-
stableKey
-
compareTo
- Specified by:
compareToin interfaceComparable<SnapshotEvidence>
-
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 withObjects::equals(Object,Object). -
locationId
Returns the value of thelocationIdrecord component.- Returns:
- the value of the
locationIdrecord component
-
ownerMemberId
-
bytecodeOffset
Returns the value of thebytecodeOffsetrecord component.- Returns:
- the value of the
bytecodeOffsetrecord component
-
sourceFile
-
lineNumber
Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-