</BUG>
result.add(sfPair.getSeries());
}
return result;
}
<BUG>public boolean isEmpty() {
return sfPairs.isEmpty();</BUG>
}
<BUG>public int size() {
return sfPairs.size();
}
}</BUG>

import com.androidplot.ui.Formatter;
import com.androidplot.ui.SeriesAndFormatter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class SeriesRegistry<SeriesType extends Series, FormatterType extends Formatter>
extends ArrayList<SeriesAndFormatter<SeriesType, FormatterType>> {
public List<SeriesType> getSeriesList() {
List<SeriesType> result = new ArrayList<>();
for(SeriesAndFormatter<SeriesType, FormatterType> sfPair : this) {
result.add(sfPair.getSeries());
}
return result;
