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: 15.02.13 Time: 18:53
public abstract class EventHandler2<T1 extends ObservableEvent, T2  extends ObservableEventextends EventHandler1<T1> {
    public EventHandler2() {
        this(2);
    }
    protected EventHandler2(int number) {
        super(number);
    }
    @Override
    protected boolean handleEvent(ObservableEvent eventList<Observablechain) {
        if (super.handleEvent(eventchain)) {
            return true;
        }
        if (.get(1).isInstance(event)) {
            handle2((T2) eventchain);
            return true;
        }
        return false;
    }
    protected abstract void handle2(T2 event2List<Observablechain);
New to GrepCode? Check out our FAQ X