📄 parametertesterimpl.java
字号:
/**
* $Log: ParameterTesterImpl.java,v $
* Revision 1.1 2003/01/16 13:06:51 mwulff
* initial version
*
* Revision 1.4 2003/01/13 12:48:46 mwulff
* added some new test methods
*
* Revision 1.3 2003/01/11 17:01:07 willaxt
* *** empty log message ***
*
* Revision 1.2 2002/12/14 22:34:18 mwulff
* no message
*
* Revision 1.1 2002/12/13 20:04:37 mwulff
* no message
*
*/
package de.fhm.jkf.test.sv;
import de.fhm.jkf.test.clsv.ParameterTester;
/**
* @author marten wulff
*
* * <br><br><center><table border="1" width="80%"><hr>
* <strong><a href="http://jkf.sourceforge.net">The JKF Project</a></strong>
* <p>
* Copyright (C) 2002 by Marten Wulff
* <p>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* <p>
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* <p>
* You should have received a copy of the <a href="http://www.gnu.org/copyleft/lesser.html">
* GNU Lesser General Public License</a> along with this library; if not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
* <hr></table></center>
*/
public class ParameterTesterImpl implements ParameterTester {
/**
* Constructor for ParameterTesterImpl.
*/
public ParameterTesterImpl(int value) {
super();
}
/* (non-Javadoc)
* @see de.fhm.jkf.test.clsv.ParameterTester#takeIntAndGiveInteger(int)
*/
public Integer takeIntAndGiveInteger(int value) {
return new Integer(value);
}
/* (non-Javadoc)
* @see de.fhm.jkf.test.clsv.ParameterTester#takeIntegerAndGiveInt(Integer)
*/
public int takeIntegerAndGiveInt(Integer value) {
return value.intValue();
}
/* (non-Javadoc)
* @see de.fhm.jkf.test.clsv.ParameterTester#takeIntegerAndGiveInteger(Integer)
*/
public Integer takeIntegerAndGiveInteger(Integer value) {
return value;
}
/* (non-Javadoc)
* @see de.fhm.jkf.test.clsv.ParameterTester#takeIntAndGiveInt(int)
*/
public int takeIntAndGiveInt(int value) {
return value;
}
public String noArg() {
return "Method noArg() called";
}
public Boolean takeBooleanAndGiveBooleanObject(boolean value) {
return new Boolean(value);
}
public boolean takeBooleanObjectAndGiveBoolean(Boolean value) {
return value.booleanValue();
}
public String doubleName(Integer value, String name) {
return "Method doubleName(Integer, String) called";
}
public String doubleName(Boolean value, String name) {
return "Method doubleName(Boolean, String) called";
}
public String doubleName(boolean value, String name) {
return "Method doubleName(boolean, String) called";
}
public String methodName(short value, String name) {
return "methodName(short, String)";
}
public String methodName(int value, String name) {
return "methodName(int, String)";
}
public String methodName(long value, String name) {
return "methodName(long, String)";
}
public String methodName(float value, String name) {
return "methodName(float, String)";
}
public String methodName(double value, String name) {
return "methodName(double, String)";
}
public String methodName(boolean value, String name) {
return "methodName(boolean, String)";
}
public String methodName(char value, String name) {
return "methodName(char, String)";
}
public String methodName(byte value, String name) {
return "methodName(byte, String)";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -