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

📄 address.java

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JAVA
字号:
/*
 * @author                        : Neelesh
 * @Version                       : 1.0
 *
 * Development Environment        : Oracle9i JDeveloper
 * Name of the File               : Address.java
 * Creation/Modification History  :
 *
 * Neelesh    07-Feb-2002      Created
 *
 */
package oracle.otnsamples.vsm.services.data;

/**
 * Class holds address information like street address, city, stae, zip,
 * country and phone. This class has a set of getter and setter methods to
 * manage the data.
 *
 * @author Neelesh
 * @version 1.0
 */
public class Address implements java.io.Serializable {

  private String address; // Address details
  private String city; // City  
  private String country; // Country code
  private String phone; // Phone number-free format
  private String state; // State
  private int zip; // Zip code 

  /**
   * Default constructor, takes no arguments
   */
  public Address() {
  }
  /**
   * Constructor
   */
  public Address(
                 String address, String city, String state, String country,
                 int zip, String phone) {
    this.address   = address;
    this.city      = city;
    this.state     = state;
    this.country   = country;
    this.zip       = zip;
    this.phone     = phone;
  }

  /**
   * Gets the name of the city
   *
   * @return <b>city</b> city name
   */
  public String getCity() {

    return city;
  }
  /**
   * Gets the state
   *
   * @return <b>state</b> state name
   */
  public String getState() {

    return state;
  }
  /**
   * Gets the country code
   *
   * @return <b>country</b> country code
   */
  public String getCountry() {

    return country;
  }
  /**
   * Gets the street address
   *
   * @return <b>address</b> street address
   */
  public String getAddress() {

    return address;
  }
  /**
   * Gets the zip
   *
   * @return <b>zip</b> zip code
   */
  public int getZip() {

    return zip;
  }
  /**
   * Gets the phone
   *
   * @return <b>phone</b> phone number
   */
  public String getPhone() {

    return phone;
  }
  /**
   * Sets the country code
   *
   * @param <b>country</b> country code
   */
  public void setCountry(String country) {
    this.country = country;
  }
  /**
   * Sets the phone number
   *
   * @param <b>phone</b> phone number
   */
  public void setPhone(String phone) {
    this.phone = phone;
  }
  /**
   * Sets the city
   *
   * @param <b>city</b> city name
   */
  public void setCity(String city) {
    this.city = city;
  }
  /**
   * Sets the zip
   *
   * @param <b>zip</b> zip code
   */
  public void setZip(int zip) {
    this.zip = zip;
  }
  /**
   * Sets the street address
   *
   * @param <b>address</b> address
   */
  public void setAddress(String address) {
    this.address = address;
  }
  /**
   * Sets the state
   *
   * @param <b>state</b> state name
   */
  public void setState(String state) {
    this.state = state;
  }
}

⌨️ 快捷键说明

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