bar.java
来自「这是一个关于J2EE的开源包common里的许多组件的示例应用程序,可以借鉴.」· Java 代码 · 共 72 行
JAVA
72 行
/**
* Title : Base Dict Class
* Description : here Description is the function of class, here maybe multirows
* @author <a href="mailto:sunpeng@china.freeborders">kevin</a>
* @Version 1.0
*/
package digester;
/**
* Class description goes here.
* @version 1.0 2005-10-11
* @author kevin
*/
public class Bar
{
int id;
String title;
Foo parent;
/**
* @return Returns the id.
*/
public int getId()
{
return id;
}
/**
* @param id The id to set.
*/
public void setId(int id)
{
this.id = id;
}
/**
* @return Returns the title.
*/
public String getTitle()
{
return title;
}
/**
* @param title The title to set.
*/
public void setTitle(String title)
{
this.title = title;
}
/**
* @return Returns the parent.
*/
public Foo getParent()
{
return parent;
}
/**
* @param parent The parent to set.
*/
public void setParent(Foo parent)
{
this.parent = parent;
}
public String toString()
{
return "Bar id:" + this.id + " || " + " title:" + this.title;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?