📄 image.java
字号:
package com.sush.webstore.store.domain.beans;
import com.sush.webstore.store.domain.IImage;
public class Image implements IImage{
private long id;
private String name;
private String path;
/**
* @return the id
*/
public long getId() {
return id;
}
/**
* @param id
* the id to set
*/
private void setId(long id) {
this.id = id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name
* the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the path
*/
public String getPath() {
return path;
}
/**
* @param path
* the path to set
*/
public void setPath(String path) {
this.path = path;
}
// @Override
// public boolean equals(Object obj) {
//
// if (this == obj)
// return true;
//
// if (this.getClass() != obj.getClass())
// return false;
//
// Image objP = (Image) obj;
//
// return (objP.id == this.id) ? true : false;
// }
//
// @Override
// public int hashCode() {
//
// int hash = 7;
// hash = hash * 31 + new Integer(Long.toString(id));
// return hash;
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -