📄 animal.java
字号:
package torm.test.beans;
/*
* Created on 2006-10-18
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public class Animal {
private int id;
private String name;
private double weight;
private String kind;
private boolean healthy;
/**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name
* The name to set.
*/
public void setName(String name) {
this.name = name;
}
/**
* @return Returns the weight.
*/
public double getWeight() {
return weight;
}
/**
* @param weight
* The weight to set.
*/
public void setWeight(double weight) {
this.weight = weight;
}
/**
* @return Returns the kind.
*/
public String getKind() {
return kind;
}
/**
* @param kind
* The kind to set.
*/
public void setKind(String kind) {
this.kind = kind;
}
/**
* @return Returns the ishealthy.
*/
public boolean getHealthy() {
return healthy;
}
/**
* @param ishealthy
* The ishealthy to set.
*/
public void setHealthy(boolean healthy) {
this.healthy = healthy;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -