GalleryFilterParameter extends GeoRectangle implements IGalleryFilter { public static boolean isEmpty(IGalleryFilter filter) { if (filter == null) return true; return (GeoRectangle.isEmpty(filter) && (filter.getDateMin() == 0) && (filter.getDateMax() == 0) && (filter.getDateModifiedMin() == 0) && (filter.getDateModifiedMax() == 0) && (!filter.isNonGeoOnly()) && (!filter.isWithNoTags()) && (filter.getRatingMin() <= 0) && (filter.getPath()==null) && (filter.getInAnyField()==null) && (filter.getTagsAllIncluded()==null) && (filter.getTagsAllExcluded()==null) && (filter.getVisibility()== VISIBILITY.DEFAULT) ); }  GalleryFilterParameter get(IGalleryFilter src); GalleryFilterParameter mergeFrom(IGalleryFilter src); @Override String getPath(); GalleryFilterParameter setPath(String path); GalleryFilterParameter setFolderAndBelow(String folder); File getPathFile(); @Override long getDateMin(); GalleryFilterParameter setDateMin(long dateMin); @Override long getDateMax(); GalleryFilterParameter setDateMax(long dateMax); GalleryFilterParameter setDate(String min, String max); GalleryFilterParameter setDate(long min, long max); @Override long getDateModifiedMin(); GalleryFilterParameter setDateModifiedMin(long dateModifiedMin); @Override long getDateModifiedMax(); GalleryFilterParameter setDateModifiedMax(long dateModifiedMax); GalleryFilterParameter setDateModified(String min, String max); GalleryFilterParameter setDateModified(long min, long max); @Override boolean isWithNoTags(); GalleryFilterParameter setWithNoTags(boolean withNoTags); @Override List<String> getTagsAllIncluded(); GalleryFilterParameter setTagsAllIncluded(List<String> tagsAllIncluded); @Override List<String> getTagsAllExcluded(); GalleryFilterParameter setTagsAllExcluded(List<String> tagsAllExcluded); @Override String getInAnyField(); GalleryFilterParameter setInAnyField(String inAnyField); VISIBILITY getVisibility(); GalleryFilterParameter setVisibility(VISIBILITY value); @Override int getSortID(); GalleryFilterParameter setSortID(int sortID); @Override boolean isSortAscending(); GalleryFilterParameter setSortAscending(boolean sortAscending); GalleryFilterParameter setSort(int sortID, boolean sortAscending); static GalleryFilterParameter parse(String s, GalleryFilterParameter result); static int parseRating(String value); static boolean isEmpty(IGalleryFilter filter); static String[] convertArray(String string); static List<String> convertList(String string); static String convertList(List<String> strings); GalleryFilterParameter setRatingMin(int ratingMin); @Override int getRatingMin(); String getDatePath(); String getDateModifiedPath();  }
@Test public void toStringEmptyTest() { GalleryFilterParameter sut = new GalleryFilterParameter(); assertEquals("", sut.toString()); assertEquals("empty", true, GalleryFilterParameter.isEmpty(sut)); }