All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.common.util.file.DirDiff Maven / Gradle / Ivy

There is a newer version: 4.4.17
Show newest version
/**
 * Copyright 2010-2014 The Kuali Foundation
 *
 * Licensed under the Educational Community License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.opensource.org/licenses/ecl2.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kuali.common.util.file;

import java.io.File;
import java.util.List;

public class DirDiff {

	// The directories that were diff'd
	File sourceDir;
	File targetDir;

	// Relative paths characterizing what files were found where
	List both;
	List different;
	List identical;
	List sourceDirOnly;
	List targetDirOnly;

	public DirDiff() {
		this(null, null);
	}

	public DirDiff(File sourceDir, File targetDir) {
		super();
		this.sourceDir = sourceDir;
		this.targetDir = targetDir;
	}

	public File getSourceDir() {
		return sourceDir;
	}

	public void setSourceDir(File sourceDir) {
		this.sourceDir = sourceDir;
	}

	public File getTargetDir() {
		return targetDir;
	}

	public void setTargetDir(File targetDir) {
		this.targetDir = targetDir;
	}

	public List getBoth() {
		return both;
	}

	public void setBoth(List both) {
		this.both = both;
	}

	public List getDifferent() {
		return different;
	}

	public void setDifferent(List different) {
		this.different = different;
	}

	public List getSourceDirOnly() {
		return sourceDirOnly;
	}

	public void setSourceDirOnly(List sourceDirOnly) {
		this.sourceDirOnly = sourceDirOnly;
	}

	public List getTargetDirOnly() {
		return targetDirOnly;
	}

	public void setTargetDirOnly(List targetDirOnly) {
		this.targetDirOnly = targetDirOnly;
	}

	public List getIdentical() {
		return identical;
	}

	public void setIdentical(List identical) {
		this.identical = identical;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy