/*
 * Decompiled with CFR 0_123.
 */
package com.zakscode.FormulaManager;

import com.zakscode.FormulaManager.TableArray;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

public class Vendor
implements Serializable,
TableArray {
    private static final long serialVersionUID = -5375130332194611512L;
    private String name;
    private String phone;
    private String email;
    private String website;
    private Date date;

    public Vendor(String name, String phone, String email, String website) {
        this.name = name;
        this.phone = phone;
        this.email = email;
        this.website = website;
        this.date = Calendar.getInstance().getTime();
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
        this.date = Calendar.getInstance().getTime();
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
        this.date = Calendar.getInstance().getTime();
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
        this.date = Calendar.getInstance().getTime();
    }

    public String getWebsite() {
        return this.website;
    }

    public void setWebsite(String website) {
        this.website = website;
        this.date = Calendar.getInstance().getTime();
    }

    public Date getDate() {
        return this.date;
    }

    public String toString() {
        return this.name;
    }

    public boolean equals(Vendor v) {
        return v.getName().equals(this.name) && v.getPhone().equals(this.phone) && v.getEmail().equals(this.email) && v.getWebsite().equals(this.website);
    }

    @Override
    public Object[] toArray() {
        return new Object[]{this.name, this.phone, this.email, this.website, this.date};
    }
}

