All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.realcomp.address.ncoa.MovedAddress Maven / Gradle / Ivy

Go to download

An collection of POJOs dealing with Addresses used throughout real-comp projects.

The newest version!
package com.realcomp.address.ncoa;

import com.realcomp.address.Address;
import javax.annotation.Generated;

public class MovedAddress {

    private Address address;
    private MoveType moveType;
    private String yearMoved;
    private String monthMoved;
    private String moveFlag;
    private String dateChecked;

    public MovedAddress(){
    }

    public MovedAddress(MovedAddress copy){
        if (copy.getAddress() != null){
            address = new Address(copy.getAddress());
        }
        moveType = copy.moveType;
        yearMoved = copy.yearMoved;
        monthMoved = copy.monthMoved;
        moveFlag = copy.moveFlag;
        dateChecked = copy.dateChecked;
    }

    public Address getAddress(){
        return address;
    }

    public void setAddress(Address address){
        this.address = address;
    }

    public MoveType getMoveType(){
        return moveType;
    }

    public void setMoveType(MoveType moveType){
        this.moveType = moveType;
    }

    /**
     * @return year moved: YYYY
     */
    public String getYearMoved(){
        return yearMoved;
    }

    public void setYearMoved(String yearMoved){
        this.yearMoved = yearMoved;
    }

    /**
     *
     * @return month moved: MM
     */
    public String getMonthMoved(){
        return monthMoved;
    }

    public void setMonthMoved(String monthMoved){
        this.monthMoved = monthMoved;
    }

    public String getMoveFlag(){
        return moveFlag;
    }

    public void setMoveFlag(String moveFlag){
        this.moveFlag = moveFlag;
    }

    /**
     *
     * @return date checked: YYYYMMDD
     */
    public String getDateChecked(){
        return dateChecked;
    }

    public void setDateChecked(String dateChecked){
        this.dateChecked = dateChecked;
    }

    @Generated("NetBeans")
    @Override
    public int hashCode(){
        int hash = 3;
        hash = 97 * hash + (this.address != null ? this.address.hashCode() : 0);
        hash = 97 * hash + (this.moveType != null ? this.moveType.hashCode() : 0);
        hash = 97 * hash + (this.yearMoved != null ? this.yearMoved.hashCode() : 0);
        hash = 97 * hash + (this.monthMoved != null ? this.monthMoved.hashCode() : 0);
        hash = 97 * hash + (this.moveFlag != null ? this.moveFlag.hashCode() : 0);
        hash = 97 * hash + (this.dateChecked != null ? this.dateChecked.hashCode() : 0);
        return hash;
    }

    @Generated("NetBeans")
    @Override
    public boolean equals(Object obj){
        if (obj == null){
            return false;
        }
        if (getClass() != obj.getClass()){
            return false;
        }
        final MovedAddress other = (MovedAddress) obj;
        if (this.address != other.address && (this.address == null || !this.address.equals(other.address))){
            return false;
        }
        if (this.moveType != other.moveType){
            return false;
        }
        if ((this.yearMoved == null) ? (other.yearMoved != null) : !this.yearMoved.equals(other.yearMoved)){
            return false;
        }
        if ((this.monthMoved == null) ? (other.monthMoved != null) : !this.monthMoved.equals(other.monthMoved)){
            return false;
        }
        if ((this.moveFlag == null) ? (other.moveFlag != null) : !this.moveFlag.equals(other.moveFlag)){
            return false;
        }
        if ((this.dateChecked == null) ? (other.dateChecked != null) : !this.dateChecked.equals(other.dateChecked)){
            return false;
        }
        return true;
    }



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy