@Test public void testIsExtendedInfoField() throws Exception { InfoFieldParser parser = new InfoFieldParser(PATTERN); Assert.assertTrue(parser.isExtendedInfoField(EXTEDENDED_INFO_HEADER)); Assert.assertFalse(parser.isExtendedInfoField(NON_EXTENDED_VALUE)); }
public boolean isExtendedInfoField(String line) { return patterns.stream().anyMatch(p -> p.isExtendedInfoField(line)); }
InfoFieldParser { public boolean isExtendedInfoField(String line) { return patterns.stream().anyMatch(p -> p.isExtendedInfoField(line)); } }
InfoFieldParser { public boolean isExtendedInfoField(String line) { return patterns.stream().anyMatch(p -> p.isExtendedInfoField(line)); } InfoFieldParser(final String templates); }
InfoFieldParser { public boolean isExtendedInfoField(String line) { return patterns.stream().anyMatch(p -> p.isExtendedInfoField(line)); } InfoFieldParser(final String templates); boolean isExtendedInfoField(String line); List<String> extractHeaderFromLine(String line); List<String> extractDataFromLine(String line); }
InfoFieldParser { public boolean isExtendedInfoField(String line) { return patterns.stream().anyMatch(p -> p.isExtendedInfoField(line)); } InfoFieldParser(final String templates); boolean isExtendedInfoField(String line); List<String> extractHeaderFromLine(String line); List<String> extractDataFromLine(String line);  }