Ejemplo n.º 1
0
  public Set<String> getSamples() {
    HashSet<String> uniqueSamples = new HashSet<String>(table.size());

    for (Entry e : table) uniqueSamples.add(e.getSampleId());

    return uniqueSamples;
  }
Ejemplo n.º 2
0
  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;
  }