001 002package org.conqat.engine.service.shared.data; 003 004import java.util.Set; 005 006/** 007 * DTO to transfer pre-commit information between client and service. 008 */ 009public class PreCommitDeltaInfo { 010 011 private Set<String> removedPaths; 012 private Set<String> modifiedPaths; 013 private Set<String> addedPaths; 014 015 public PreCommitDeltaInfo(Set<String> addedPaths, Set<String> modifiedPaths, Set<String> removedPaths) { 016 this.addedPaths = addedPaths; 017 this.modifiedPaths = modifiedPaths; 018 this.removedPaths = removedPaths; 019 } 020 021 public Set<String> getAddedPaths() { 022 return addedPaths; 023 } 024 025 public Set<String> getModifiedPaths() { 026 return modifiedPaths; 027 } 028 029 public Set<String> getRemovedPaths() { 030 return removedPaths; 031 } 032 033 public boolean isEmpty() { 034 return addedPaths.isEmpty() && modifiedPaths.isEmpty() && removedPaths.isEmpty(); 035 } 036}