responseSerialNo(int) 추가

master
mjkhan21 9 months ago
parent 15b624fdcf
commit 948bebd8d4

@ -1,11 +1,23 @@
package cokr.xit.interfaces.lntris; package cokr.xit.interfaces.lntris;
import java.text.DecimalFormat;
/** /**
* @param <Q> * @param <Q>
* @param <R> * @param <R>
* @author mjkhan * @author mjkhan
*/ */
public abstract class SpecialInterface<Q extends SourceMessage.Request, R extends TargetMessage.Response> extends InterfaceInfo<Q, R> { public abstract class SpecialInterface<Q extends SourceMessage.Request, R extends TargetMessage.Response> extends InterfaceInfo<Q, R> {
private static final DecimalFormat serialFormat = new DecimalFormat("00000");
/** .
* @param i
* @return
*/
public static final String responseSerialNo(int i) {
return serialFormat.format(i);
}
@Override @Override
public String type() { public String type() {
return "special"; return "special";

Loading…
Cancel
Save