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

digital.toke.event.TokenEvent Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright 2019 David R. Smith All Rights Reserved 
 */
package digital.toke.event;

import java.util.EventObject;

import digital.toke.Token;

public class TokenEvent extends EventObject {

	private static final long serialVersionUID = 1L;
	
	final EventEnum type;
	final Token token;
	
	public TokenEvent(Object obj, EventEnum type) {
		super(obj);
		this.type = type;
		token = null;
	}
	
	public TokenEvent(Object obj, Token token, EventEnum type) {
		super(obj);
		this.type = type;
		this.token = token;
	}

	public Token getToken() {
		return token;
	}

	public EventEnum getType() {
		return type;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy