@Override public long size() { Integer qtd = 0; if (busca) { qtd = listStory.size(); } else { qtd = storyBusiness.size(); } return qtd; }
@Override public Iterator<? extends Story> iterator(long first, long count) { List<Story> lista = null; if (busca) { lista = this.listStory; } else { lista = storyBusiness.find(first, count); } return lista.iterator(); }