multi.java

来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 120 行

JAVA
120
字号
//$Id: Multi.java,v 1.1.2.1 2003/11/08 02:25:29 oneovthafew Exp $package org.hibernate.test;import java.util.Calendar;public class Multi extends Top {		/**	 * Constructor for Multi.	 */	public Multi() {		super();	}		private String extraProp;	private String derived;	private Component comp;	private Po po;		/**	 * Returns the extraProp.	 * @return String	 */	public String getExtraProp() {		return extraProp;	}		/**	 * Sets the extraProp.	 * @param extraProp The extraProp to set	 */	public void setExtraProp(String extraProp) {		this.extraProp = extraProp;	}		public static final class Component {		private Calendar cal;		private Float floaty;		/**		 * Returns the cal.		 * @return Calendar		 */		public Calendar getCal() {			return cal;		}				/**		 * Sets the cal.		 * @param cal The cal to set		 */		public void setCal(Calendar cal) {			this.cal = cal;		}				/**		 * Returns the floaty.		 * @return Float		 */		public Float getFloaty() {			return floaty;		}				/**		 * Sets the floaty.		 * @param floaty The floaty to set		 */		public void setFloaty(Float floaty) {			this.floaty = floaty;		}			}		/**	 * Returns the comp.	 * @return Component	 */	public Component getComp() {		return comp;	}		/**	 * Sets the comp.	 * @param comp The comp to set	 */	public void setComp(Component comp) {		this.comp = comp;	}		/**	 * Returns the po.	 * @return Po	 */	public Po getPo() {		return po;	}		/**	 * Sets the po.	 * @param po The po to set	 */	public void setPo(Po po) {		this.po = po;	}		public String getDerived() {		return derived;	}	public void setDerived(String derived) {		this.derived = derived;	}}

⌨️ 快捷键说明

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