Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kasource.kaevent.example.guice.custom.event;
 
 
 
 //CHECKSTYLE:OFF
 ///CLOVER:OFF
@Event(listener = TemperatureChangeListener.class)
public class TemperatureChangeEvent extends EventObject {
    private static final long serialVersionUID = 1L;
    private double currentTemperature;
    public TemperatureChangeEvent(Thermometer sourcedouble currentTemperature) {
        super(source);
        this. = currentTemperature;
    }
    @Override
    public Thermometer getSource() {
        return (Thermometersuper.getSource();
    }
    public double getCurrentTemperature() {
        return this.;
    }
New to GrepCode? Check out our FAQ X