@Test void test7231_5_3_4_example1() { QuotedQualityCSV values = new QuotedQualityCSV(); values.addValue("compress, gzip"); values.addValue(""); values.addValue("*"); values.addValue("compress;q=0.5, gzip;q=1.0"); values.addValue("gzip;q=1.0, identity; q=0.5, *;q=0"); assertContains(values.getValues(), "compress", "gzip", "*", "gzip", "gzip", "compress", "identity" ); }
public List<String> getValues() { if (!sorted) { sort(); } return values; }
QuotedQualityCSV extends QuotedCSV implements Iterable<String> { public List<String> getValues() { if (!sorted) { sort(); } return values; } }
QuotedQualityCSV extends QuotedCSV implements Iterable<String> { public List<String> getValues() { if (!sorted) { sort(); } return values; } QuotedQualityCSV();  QuotedQualityCSV(String[] preferredOrder);  QuotedQualityCSV(Function<String, Integer> secondaryOrdering); }
QuotedQualityCSV extends QuotedCSV implements Iterable<String> { public List<String> getValues() { if (!sorted) { sort(); } return values; } QuotedQualityCSV();  QuotedQualityCSV(String[] preferredOrder);  QuotedQualityCSV(Function<String, Integer> secondaryOrdering); List<String> getValues(); @Override Iterator<String> iterator(); }
QuotedQualityCSV extends QuotedCSV implements Iterable<String> { public List<String> getValues() { if (!sorted) { sort(); } return values; } QuotedQualityCSV();  QuotedQualityCSV(String[] preferredOrder);  QuotedQualityCSV(Function<String, Integer> secondaryOrdering); List<String> getValues(); @Override Iterator<String> iterator(); static Function<String, Integer> MOST_SPECIFIC; }