code: public static boolean contains(Iterator<String> iterator, String value) {
          if (iterator == null || value == null) {
              return false;
          }
          while (iterator.hasNext()) {
              if (value.equals(iterator.next())) {
                  return true;
              }
          }
          return false;
      }
docs: Determines if a String value is included in a Iterated list.
  The iteration is only run as far as necessary to determine
  if the value is included in the underlying list.
  
  @param iterator
  @param value
  @return