All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zipwhip.events.OrderedDataEventObject Maven / Gradle / Ivy

package com.zipwhip.events;

/**
 * Created by IntelliJ IDEA.
 * User: Michael
 * Date: 11/26/11
 * Time: 11:29 PM
 *
 * For when your data has some order, and we need to know where it is.
 */
public class OrderedDataEventObject extends DataEventObject {

    int index;

    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public OrderedDataEventObject(Object source, T data, int index) {
        super(source, data);

        this.index = index;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy