title: How to get the name of MatchAllFilters and other filters that have been created? What changes to the interface need to be made?
body: <p>What changes do I need to make for the "all the Filter classes"?  For the MatchAllFilter class, a getName method should return a String of all the Filter names in its ArrayList which I don't know how to do. I also was wondering how would I use the getName method in filter like depth?</p>
  
  <pre><code>public interface Filter { 
     public String getName();
     public  boolean satisfies(QuakeEntry qe);
  }
  
  
  public class DepthFilter implements Filter {
      private double depthMin;
      private double depthMax;
      private String fName;
  
      public DepthFilter(double min, double max, String name) {
          depthMin = min;
          depthMax = max;
          fName = name;
  
      }
  
      public boolean satisfies(QuakeEntry qe) {
          if (qe.getDepth() &gt;= depthMin &amp;&amp; qe.getDepth() &lt;= depthMax) {
              return true;
          }
  
          return false;
      }
  }
  
  public class MatchAllFilter implements Filter {
      private ArrayList&lt;Filter&gt; filters;
      private String fName;
  
      public MatchAllFilter() {
          filters = new ArrayList&lt;Filter&gt;();
  
      }
  
  public void addFilter(Filter f){
      filters.add(f);
  
      public boolean satisfies(QuakeEntry qe) {
          for (Filter f : filters) {
              if (!f.satisfies(qe)) { // any of the filters criteria failed, then exit
                  return false;
              }
          }
          return true;
      }
  }
  </code></pre>