@Test public void hasSizeReflectsActualSizeOfPopulatedAlternatives() throws Exception { assertThat(empty().size(),equalTo(0)); assertThat(populated().size(),equalTo(2)); }
@Override public int size() { return this.entries.size(); }
ImmutableAlternatives implements Alternatives { @Override public int size() { return this.entries.size(); } }
ImmutableAlternatives implements Alternatives { @Override public int size() { return this.entries.size(); } private  ImmutableAlternatives(final ImmutableList<Entry> entries); }
ImmutableAlternatives implements Alternatives { @Override public int size() { return this.entries.size(); } 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 int size() { return this.entries.size(); } 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();  }