Code example for Date

Methods: after, equals

0
			return fileName;
		} 
 
		@Override 
		public int compareTo(FileDetails another) {
			if (lastModified.equals(another.getLastModified())) {
				return 0; 
			} 
 
			return lastModified.after(another.getLastModified()) ? 1 : -1;
 
		} 
	} 
 
}