@Test public void retrievesQualityAccordingToRegistrationIndex() throws Exception { assertThat(populated().quality(0),equalTo(Q1)); assertThat(populated().quality(1),equalTo(Q2)); }
@Override public ImmutableQuality quality(int i) { return entry(i).quality; }
ImmutableAlternatives implements Alternatives { @Override public ImmutableQuality quality(int i) { return entry(i).quality; } }
ImmutableAlternatives implements Alternatives { @Override public ImmutableQuality quality(int i) { return entry(i).quality; } private  ImmutableAlternatives(final ImmutableList<Entry> entries); }
ImmutableAlternatives implements Alternatives { @Override public ImmutableQuality quality(int i) { return entry(i).quality; } private  ImmutableAlternatives(final ImmutableList<Entry> entries); @Override Iterator<Alternative> iterator(); @Override int size(); @Override boolean isEmpty(); @Override ImmutableAlternative alternative(int i); @Override ImmutableQuality quality(int i); @Override String toString(); }
ImmutableAlternatives implements Alternatives { @Override public ImmutableQuality quality(int i) { return entry(i).quality; } private  ImmutableAlternatives(final ImmutableList<Entry> entries); @Override Iterator<Alternative> iterator(); @Override int size(); @Override boolean isEmpty(); @Override ImmutableAlternative alternative(int i); @Override ImmutableQuality quality(int i); @Override String toString();  }