@Test public void retrievesAlternativeAccordingToRegistrationIndex() throws Exception { assertThat(populated().alternative(0),sameInstance(ALT1)); assertThat(populated().alternative(1),sameInstance(ALT2)); }
@Override public ImmutableAlternative alternative(int i) { return entry(i).alternative; }
ImmutableAlternatives implements Alternatives { @Override public ImmutableAlternative alternative(int i) { return entry(i).alternative; } }
ImmutableAlternatives implements Alternatives { @Override public ImmutableAlternative alternative(int i) { return entry(i).alternative; } private  ImmutableAlternatives(final ImmutableList<Entry> entries); }
ImmutableAlternatives implements Alternatives { @Override public ImmutableAlternative alternative(int i) { return entry(i).alternative; } 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 ImmutableAlternative alternative(int i) { return entry(i).alternative; } 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();  }