productinfovo.java

来自「一份java写的期货交易程序」· Java 代码 · 共 59 行

JAVA
59
字号
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ProductInfoVO.java

package gnnt.MEBS.hq;

import java.util.Date;

public class ProductInfoVO
{

    public String code;
    public String name;
    public int type;
    public int openTime;
    public int tradeSecNo[];
    public int closeTime;
    public Date modifyTime;
    public static final int TYPE_INVALID = -1;
    public static final int TYPE_COMMON = 0;
    public static final int TYPE_CANCEL = 1;
    public static final int TYPE_INDEX = 2;
    public static final int TYPE_INDEX_MAIN = 3;
    public static final int TYPE_SERIES = 4;
    public static final int TYPE_PAUSE = 5;
    public static final int TYPE_FINISHIED = 6;
    public int status;
    public String pyName[];
    public float fUnit;

    public ProductInfoVO()
    {
        tradeSecNo = new int[1];
        pyName = new String[0];
        fUnit = 1.0F;
    }

    public String toString()
    {
        String sep = "\n";
        StringBuffer sb = new StringBuffer();
        sb.append("**" + getClass().getName() + "**" + sep);
        sb.append("Code:" + code + sep);
        sb.append("Name:" + name + sep);
        sb.append("Type:" + type + sep);
        sb.append("CloseTime:" + closeTime + sep);
        sb.append("CreateTime:" + openTime + sep);
        sb.append("ModifyTime:" + modifyTime + sep);
        sb.append("Status:" + status + sep);
        sb.append("pyName.length:" + pyName.length + sep);
        for(int i = 0; i < pyName.length; i++)
            sb.append("pyName[" + i + "]:" + pyName[i] + sep);

        sb.append(sep);
        return sb.toString() + super.toString();
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?