public Set<String> getSamples() { HashSet<String> uniqueSamples = new HashSet<String>(table.size()); for (Entry e : table) uniqueSamples.add(e.getSampleId()); return uniqueSamples; }
public Set<String> getSamplesInLane(int lane) { if (lane <= 0) throw new IllegalArgumentException("Invalid negative lane number " + lane); HashSet<String> samples = new HashSet<String>(table.size() / 8); for (Entry e : this) { if (lane == e.getLane()) samples.add(e.getSampleId()); } return samples; }