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

net.yapbam.data.event.AccountRemovedEvent Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.yapbam.data.event;

import net.yapbam.data.Account;

public class AccountRemovedEvent extends DataEvent {
	private Account removed;
	private int index;
	
	public AccountRemovedEvent(Object source, int index, Account removed) {
		super(source);
		this.index = index;
		this.removed = removed;
	}

	/**
	 * Get index where the removed element was in the source. 
	 * @return index where the removed element was (be careful, the element isn't in the source anymore).
	 */
	public int getIndex() {
		return index;
	}

	public Account getRemoved() {
		return removed;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy