Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jmmo.observable.event.handlers;
 
 
 import java.util.List;

User: Tomas Date: 16.02.13 Time: 11:02
public abstract class EventHandler4<T1 extends ObservableEvent, T2  extends ObservableEvent, T3 extends ObservableEvent,
                                            T4 extends ObservableEventextends EventHandler3<T1, T2, T3> {
    public EventHandler4() {
        this(4);
    }
    protected EventHandler4(int number) {
        super(number);
    }
    @Override
    protected boolean handleEvent(ObservableEvent eventList<Observablechain) {
        if (super.handleEvent(eventchain)) {
            return true;
        }
        if (.get(3).isInstance(event)) {
            handle4((T4) eventchain);
            return true;
        }
        return false;
    }
    protected abstract void handle4(T4 event4List<Observablechain);
New to GrepCode? Check out our FAQ X