Initial commit from SVN.
This commit is contained in:
33
Common/src/com/common/event/VoidHandler2.java
Normal file
33
Common/src/com/common/event/VoidHandler2.java
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (c) 1999,2005 Declarative Engineering LLC.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Declarative Engineering LLC
|
||||
* verson 1 which accompanies this distribution, and is available at
|
||||
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
||||
*/
|
||||
package com.common.event;
|
||||
|
||||
/**
|
||||
* Performs some task using the passed parameters.
|
||||
*/
|
||||
public abstract class VoidHandler2 extends VoidHandler {
|
||||
/**
|
||||
* Handler2 constructor.
|
||||
*/
|
||||
public VoidHandler2() {
|
||||
super();
|
||||
}//Handler2()//
|
||||
/**
|
||||
* Calls the evaluate method that takes two parameters.
|
||||
* @param parameters The parameters passed to the handler when it is invoked.
|
||||
*/
|
||||
public final void evaluate(Object[] parameters) {
|
||||
evaluate(((parameters != null) && (parameters.length > 0)) ? parameters[0] : null, ((parameters != null) && (parameters.length > 1)) ? parameters[1] : null);
|
||||
}//evaluate()//
|
||||
/**
|
||||
* Performs what ever the handler is coded to do when called.
|
||||
* @param param1 The first parameter passed to the handler when it is invoked.
|
||||
* @param param2 The second parameter passed to the handler when it is invoked.
|
||||
*/
|
||||
public abstract void evaluate(Object param1, Object param2);
|
||||
}//Handler2//
|
||||
Reference in New Issue
Block a user