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

step.grid.filemanager.CachedFileVersion Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package step.grid.filemanager;

public class CachedFileVersion {

	private FileVersion fileVersion;

	private boolean cleanable;

	private long lastAccessTime;

	public CachedFileVersion(FileVersion fileVersion, boolean cleanable) {
		this.fileVersion = fileVersion;
		this.cleanable = cleanable;
		this.lastAccessTime = System.currentTimeMillis();
	}

	public FileVersion getFileVersion() {
		return fileVersion;
	}

	public void setFileVersion(FileVersion fileVersion) {
		this.fileVersion = fileVersion;
	}

	public boolean isCleanable() {
		return cleanable;
	}

	public void setCleanable(boolean cleanable) {
		this.cleanable = cleanable;
	}

	public long getLastAccessTime() {
		return lastAccessTime;
	}

	public void setLastAccessTime(long lastAccessTime) {
		this.lastAccessTime = lastAccessTime;
	}

	public void updateLastAccessTime() {
		this.lastAccessTime = System.currentTimeMillis();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy