name-parser-api/src/test/java/org/gbif/nameparser/NameParserTest.java
/**
   * Converts lines of a classpath resource that are not empty or are comments starting with #
   * into a simple string iterable
   */
Converts lines of a classpath resource that are not empty or are comments starting with
into a simple string iterable
Converts lines of a classpath resource that are not empty or are comments starting with into a simple string iterable
private Iterable<String> iterResource(String resource) throws UnsupportedEncodingException {
    LineIterator iter = new LineIterator(resourceReader(resource));
    return Iterables.filter(() -> iter,
        line -> line != null && !line.trim().isEmpty() && !line.startsWith("#")
    );
  }
private Iterable < String > iterResource ( String resource ) throws UnsupportedEncodingException { LineIterator iter = new LineIterator ( resourceReader ( resource ) ) ; return Iterables . filter ( ( ) -> iter , line -> line != null && ! line . trim ( ) . isEmpty ( ) && ! line . startsWith ( "#" ) ) ; }
Converts lines of a classpath resource that are not empty or are comments starting with
 into a simple string iterable
Converts lines of a classpath resource that are not empty or are comments starting with into a simple string iterable