net.nemerosa.ontrack.model.structure.SyncResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.structure;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@ToString
public class SyncResult {
@Getter
@Setter
private int unknownTargetIgnored = 0;
@Getter
@Setter
private int unknownTargetDeleted = 0;
@Getter
private int created = 0;
@Getter
private int presentTargetIgnored = 0;
@Getter
private int presentTargetReplaced = 0;
public static SyncResult empty() {
return new SyncResult();
}
public void create() {
created++;
}
public void ignorePresentTarget() {
presentTargetIgnored++;
}
public void replacePresentTarget() {
presentTargetReplaced++;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy