All pastes #958589 Raw Edit

Something

public text v1 · immutable
#958589 ·published 2008-03-26 20:33 UTC
rendered paste body
The Interface:
--------------

public interface ConfigChangedListener<T extends Serializable> {

    /**
     * A configuration entry has been modified.
     */
    public void configValueChanged(BaseConfig<T> configEntry, T oldValue, T newValue);
}


The code where I am trying to instanciate it:
---------------------------------------------

        ConfigChangedListener<? extends Serializable> myListener = new ConfigChangedListener<T extends Serializable>() {

            public void configValueChanged(BaseConfig<T> configEntry, T oldValue, T newValue) {
            }
        };


The following DOES work, however:
---------------------------------

public class Foo<T extends Serializable> implements ConfigChangedListener<T> {
    public void configValueChanged(BaseConfig<T> configEntry, T oldValue, T newValue) {