parent.java

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

JAVA
63
字号
//$Id: Parent.java,v 1.1.2.1 2003/11/08 02:25:30 oneovthafew Exp $package org.hibernate.test;public class Parent {	private long id;	private int count;	private Child child;	private Object any;	private int x;		public int getX() {		return x;	}	public void setX(int x) {		this.x = x;	}		public int getCount() {		return count;	}			public long getId() {		return id;	}			public void setCount(int count) {		this.count = count;	}			public void setId(long id) {		this.id = id;	}			public Child getChild() {		return child;	}			public void setChild(Child child) {		this.child = child;	}		public Object getAny() {		return any;	}	public void setAny(Object any) {		this.any = any;	}}

⌨️ 快捷键说明

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