@Test public void should_return_separator_with_more_reliable_header_info() { final Separator semiColonSeparator = new Separator(';'); final Separator commaSeparator = new Separator(','); commaSeparator.setHeaderInfoReliable(true); semiColonSeparator.setHeaderInfoReliable(false); SeparatorAnalyzer separatorAnalyzer = new SeparatorAnalyzer(3, Collections.emptyList()); assertTrue(separatorAnalyzer.compare(commaSeparator, semiColonSeparator) < 0); }
public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); }
SeparatorAnalyzer implements Consumer<Separator> { public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); } }
SeparatorAnalyzer implements Consumer<Separator> { public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); } SeparatorAnalyzer(int numberOfLines, List<String> sampleLines); }
SeparatorAnalyzer implements Consumer<Separator> { public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); } SeparatorAnalyzer(int numberOfLines, List<String> sampleLines); @Override void accept(Separator separator); int compare(Separator s1, Separator s2); }
SeparatorAnalyzer implements Consumer<Separator> { public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); } SeparatorAnalyzer(int numberOfLines, List<String> sampleLines); @Override void accept(Separator separator); int compare(Separator s1, Separator s2);  }