Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package gov.va.med.pbm.ampl.model;

import java.io.Serializable;
import java.util.Objects;

import gov.va.med.pbm.ampl.constant.AmplConstants;
import gov.va.med.pbm.ampl.model.address.Address;

/**
* This class consists of properties representing an organization.
*
* @author Ian Meinert
* @since 1.0
*/
public class Facility implements Serializable {

private static final long serialVersionUID = -7788619177798333712L;

/**
* The siteName.
*/
private String siteName;

/**
* The name.
*/
private String name;

/**
* The stationNumber.
*/
private String stationNumber;

/**
* The location.
*/
private Address location;

/**
* The getter for the siteName.
*
* @return the siteName
*/
public String getSiteName() {
return siteName;
}

/**
* The setter for the siteName.
*
* @param siteName the siteName to set
*/
public void setSiteName(String siteName) {
this.siteName = siteName;
}

/**
* The getter for the name.
*
* @return the name
*/
public String getName() {
return name;
}

/**
* The setter for the name.
*
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}

/**
* The getter for the stationNumber.
*
* @return the stationNumber
*/
public String getStationNumber() {
return stationNumber;
}

/**
* The setter for the stationNumber.
*
* @param stationNumber the stationNumber to set
*/
public void setStationNumber(String stationNumber) {
this.stationNumber = stationNumber;
}

/**
* The getter for the location.
*
* @return the location
*/
public Address getLocation() {
return location;
}

/**
* The setter for the location.
*
* @param location the location to set
*/
public void setLocation(Address location) {
this.location = location;
}

/**
* Indicates whether some other object is "equal to" this one.
*/
@Override
public boolean equals(Object o) {
if (!(o instanceof Facility)) {
return false;
}

return Objects.equals(stationNumber, ((Facility) o).stationNumber) && Objects.equals(name, ((Facility) o).name)
&& Objects.equals(siteName, ((Facility) o).siteName) && Objects.equals(location, ((Facility) o).location);
}

/**
* Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided
* by HashMap.
*/
@Override
public int hashCode() {
return AmplConstants.PRIME_NUMBER
* (Objects.hash(stationNumber) + Objects.hash(name) + Objects.hash(siteName) + Objects.hash(location));
}
}