public void init(float width, float maxHeight, Collection<? extends IColoredString<T>> text) { this.text = new ArrayList<>(text);
is giving the following error in NetBeans
incompatible types: ArrayList<CAP#1> cannot be converted to List<IColoredString>
where T is a type-variable:
T extends Color declared in class TextPanel
where CAP#1 is a fresh type-variable:
CAP#1 extends IColoredString from capture of ? extends IColoredString
Not sure if that's a NetBeans only thing or a real error though
line 296 (the second shown here)
public void init(float width, float maxHeight, Collection<? extends IColoredString<T>> text) { this.text = new ArrayList<>(text);
is giving the following error in NetBeans
Not sure if that's a NetBeans only thing or a real error though