首页 > 其他 > 详细

扩展字段的定义方法

时间:2017-05-11 18:09:52      阅读:275      评论:0      收藏:0      [点我收藏+]

/**
     * 获取其他与本对象相关的属性键值对
     * @param key
     * @return
     */
    public Object getProperties(String key) {
        if (this.properties != null) {
            Object value = this.properties.get(key);
            return value==null?null:value;
        } else {
            return null;
        }
    }

 

 String availableBal = (String) order.getProperties("availableBal");
        String ledgerBal = (String) order.getProperties("ledgerBal");
        String retCode = (String) order.getProperties("retCode");
        String retMsg = (String) order.getProperties("retMsg");

扩展字段的定义方法

原文:http://www.cnblogs.com/qq835804210/p/6841961.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!