package cgeo.geocaching.filter; import cgeo.geocaching.models.Geocache; import android.support.annotation.NonNull; import android.os.Parcelable; import java.util.List; public interface IFilter extends Parcelable { @NonNull String getName(); /** * @return {@code true} if the filter accepts the cache, false otherwise */ boolean accepts(@NonNull final Geocache cache); void filter(@NonNull final List<Geocache> list); }