⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 item.java

📁 EJB 实例
💻 JAVA
字号:
package ejb;

import java.io.Serializable;

public class Item implements Serializable{
    private static final long serialVersionUID = -560245896319031239L;
    private String _title;
    private float _price;
    private String _type;

    public Item(String title,float price,String type) {
        _title = title;
        _price = price;
        _type = type;
    }
    public String getTitle(){
        return _title;
    }
    public float getPrice(){
        return _price;
    }
    public String getType(){
        return _type;
    }
    public final boolean equals(Object o){
        if(!(o instanceof Item)){
             return false;
        }
        Item i = (Item) o;
        return (getClass() == i.getClass())&&(_title == null? i._title == null: _title.equals(i._title));


    }
}

⌨️ 快捷键说明

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