/*-
 * #%L
 * Grid Exporter Add-on
 * %%
 * Copyright (C) 2022 - 2024 Flowing Code
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package com.flowingcode.vaadin.addons.gridexporter;

import java.io.Serializable;
import java.time.LocalDate;

@SuppressWarnings("serial")
public class Person implements Serializable {

  private String name;
  private String lastName;
  private Integer age;
  private Double budget;
  private LocalDate favDate;
  private LocalDate worstDate;

  public Person(String name, String lastName, Integer age, Double budget) {
    this(name, lastName, age, budget, null, null);
  }

  public Person(
      String name,
      String lastName,
      Integer age,
      Double budget,
      LocalDate favDate,
      LocalDate worstDate) {
    super();
    this.name = name;
    this.lastName = lastName;
    this.age = age;
    this.budget = budget;
    this.favDate = favDate;
    this.worstDate = worstDate;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }

  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }

  public Double getBudget() {
    return budget;
  }

  public void setBudget(Double budget) {
    this.budget = budget;
  }

  public LocalDate getFavDate() {
    return favDate;
  }

  public void setFavDate(LocalDate favoriteDate) {
    this.favDate = favoriteDate;
  }

  public LocalDate getWorstDate() {
    return worstDate;
  }

  public void setWorstDate(LocalDate worstDate) {
    this.worstDate = worstDate;
  }
}
