Code example for File

Methods: lastModified

0
	 
	@Override 
	public int compare(File f1, File f2) {
		 
		long m1 = f1.lastModified();
		long m2 = f2.lastModified();
		 
		if(m2 > m1){
			return 1; 
		}else if(m2 == m1){
			return 0; 
		}else{ 
			return -1; 
		} 
		 
		 
	} 
 
	protected static final int STORE_FILE = 1;
	protected static final int CLEAN_CACHE = 2;