📄 location.java
字号:
package crms.vo;import java.util.*;import org.apache.log4j.Logger;public class Location { static Logger logger = Logger.getLogger(Location.class); private int id = -1; private int companyid = -1; private String title = null; private String address = null; private String suburb = null; private String state = null; private String country = null; private String postcode = null; private ArrayList phone = null; private ArrayList fax = null; private ArrayList email = null; private ArrayList url = null; private boolean deleted = false; public Location() { } public int getID() { return id; } public void setID(int new_id) { id = new_id; } public int getCompanyID() { return companyid; } public void setCompanyID(int new_companyid) { companyid = new_companyid; } public String getTitle() { return title; } public void setTitle(String new_title) { title = new_title; } public String getAddress() { return address; } public void setAddress(String new_address) { address = new_address; } public String getSuburb() { return suburb; } public void setSuburb(String new_suburb) { suburb = new_suburb; } public String getState() { return state; } public void setState(String new_state) { state = new_state; } public String getCountry() { return country; } public void setCountry(String new_country) { country = new_country; } public String getPostCode() { return postcode; } public void setPostCode(String new_postcode) { postcode = new_postcode; } public ArrayList getPhone() { return phone; } public void setPhone(ArrayList new_phone) { phone = new_phone; } public ArrayList getFax() { return fax; } public void setFax(ArrayList new_fax) { fax = new_fax; } public ArrayList getEmail() { return email; } public void setEmail(ArrayList new_email) { email = new_email; } public ArrayList getURL() { return url; } public void setURL(ArrayList new_url) { url = new_url; } public boolean getDeleted() { return deleted; } public void setDeleted(boolean new_deleted) { deleted = new_deleted; } public String toString() { return title; } /** Determine whether a Location object is equal to ourselves. */ public boolean equals(Location test) { logger.debug("Comparing Location: " + test.getID() + " vs " + id); return test.getID() == id; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -