@Test public void testDoesntAcceptBeforeMin() { when(file.lastModified()).thenReturn(99L); assertFalse(lastModifiedFileFilter.accept(file)); }
@Override public boolean accept(File pathname) { long lastModified = pathname.lastModified(); if (lastModified >= minLastModified && lastModified <= maxLastModified) { return true; } return false; }
LastModifiedFileFilter implements ParcelableFileFilter { @Override public boolean accept(File pathname) { long lastModified = pathname.lastModified(); if (lastModified >= minLastModified && lastModified <= maxLastModified) { return true; } return false; } }
LastModifiedFileFilter implements ParcelableFileFilter { @Override public boolean accept(File pathname) { long lastModified = pathname.lastModified(); if (lastModified >= minLastModified && lastModified <= maxLastModified) { return true; } return false; } LastModifiedFileFilter(long minLastModified, long maxLastModified); }
LastModifiedFileFilter implements ParcelableFileFilter { @Override public boolean accept(File pathname) { long lastModified = pathname.lastModified(); if (lastModified >= minLastModified && lastModified <= maxLastModified) { return true; } return false; } LastModifiedFileFilter(long minLastModified, long maxLastModified); @Override boolean accept(File pathname); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); }
LastModifiedFileFilter implements ParcelableFileFilter { @Override public boolean accept(File pathname) { long lastModified = pathname.lastModified(); if (lastModified >= minLastModified && lastModified <= maxLastModified) { return true; } return false; } LastModifiedFileFilter(long minLastModified, long maxLastModified); @Override boolean accept(File pathname); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static final Creator<LastModifiedFileFilter> CREATOR; }