code: public boolean contains(Format format) {
          for (Format f : list) {
              if (f.matches(format)) return true;
          }
          return false;
      }
docs: Checks that collection has specified format.
  
  @param format the format to be checked
  @return true if collection contains specified format and false otherwise