I have an AbstractCacheBlock and I want to define a class CacheSet that contains many classes extending AbstractCacheBlock. I believe what I want is something like
public class CacheSet<? extend AbstractCacheBlock>
But this doesnt appear valid. How can I refer to that class then? Usually it looks something like
public class CacheSet<T> {
public void something() {
T t = new T();
}
What do I use in place of the T then?
CacheSet? Shouldn't you be adding already created instances?