java Programming Glossary: abstracttoolbox
Java collections covariance problem http://stackoverflow.com/questions/3763192/java-collections-covariance-problem public BluntItem implements AbstractItem public interface AbstractToolbox well the problem starts here... public List AbstractItem getItems.. AbstractItem getItems public ExpensiveToolbox implements AbstractToolbox private List SharpItem items new ArrayList SharpItems public.. getItems return this.items public CheapTooblox implements AbstractToolbox private List BluntItem items new ArrayList BluntItem public..
|