property.java

来自「一个实用工具类」· Java 代码 · 共 65 行

JAVA
65
字号
/* * Copyright (C) butor.com. All rights reserved. * * This software is published under the terms of the GNU Library General * Public License (GNU LGPL), a copy of which has been included with this * distribution in the LICENSE.txt file.  */package org.butor.config.lowlevel;/** * @version 	1.0 * @author */public class Property {	protected Object f_key = null;	// value are mandatory	protected Object f_value = null;		/**	 * Constructor for Property.	 */	public Property(Object key, Object value) {		super();				f_key = key;		// value are mandatory//		f_value = (value != null ? value : "");		f_value = value;	}	/**	 * Get property value.	 * 	 * @return Object	 */	public Object getValue() {		return f_value;	}	/**	 * Get property key.	 * 	 * @return Object	 */	public Object getKey() {		return f_key;	}	/**	 * 	 * toString this object content.	 * 	 * @return String.	 */	public String toString() {		StringBuffer buffer = new StringBuffer("key=");		buffer.append((f_key == null ? "null" : f_key));		buffer.append(", value=");				buffer.append((f_value == null ? "null" : f_value));				return buffer.toString();	}}

⌨️ 快捷键说明

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