Record Class RepositoryReplicationResult
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryReplicationResult
- Record Components:
success- whether the operation completed without unresolved conflictsstatus- transfer statusevidence- safe evidence entriesconflicts- unresolved conflicts
- All Implemented Interfaces:
Serializable
public record RepositoryReplicationResult(boolean success, RepositoryArtifactTransferStatus status, List<RepositoryReplicationEvidence> evidence, List<RepositoryReplicationConflict> conflicts)
extends Record
implements Serializable
Result of one repository replication operation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryReplicationResult(boolean success, RepositoryArtifactTransferStatus status, List<RepositoryReplicationEvidence> evidence, List<RepositoryReplicationConflict> conflicts) Creates an immutable result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconflictsrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryReplicationResult
public RepositoryReplicationResult(boolean success, RepositoryArtifactTransferStatus status, List<RepositoryReplicationEvidence> evidence, List<RepositoryReplicationConflict> conflicts) Creates an immutable result.
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
success
-
status
-
evidence
-
conflicts
-