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

net.sf.okapi.steps.diffleverage.FileLikeThing Maven / Gradle / Ivy

There is a newer version: 1.47.0
Show newest version
package net.sf.okapi.steps.diffleverage;

import java.net.URI;

/**
 * Wrapper for any type of class that acts like a {@link File}
 * @author HARGRAVEJE
 *
 * @param  A class that abstracts a {@link File}. 
 */
public class FileLikeThing {
	private URI path;
	private T fileLikeThing;
	
	public FileLikeThing(URI path, T fileLikeThing) {
		this.path = path;
		this.fileLikeThing = fileLikeThing;
	}
	
	public URI getPath() {
		return path;
	}
	
	public T getFileLikeThing() {
		return fileLikeThing;
	}	
	
	@Override
	public String toString() {
		return path.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy