Package com.peterhi.obsolete

Source Code of com.peterhi.obsolete.Pet

package com.peterhi.obsolete;

import java.util.Set;

import com.peterhi.obsolete.Model;
import com.peterhi.obsolete.ModelSupport;
import com.peterhi.obsolete.PropertySet;

public class Pet implements Model {
  private final ModelSupport support;
 
  private String name;
  private int age;
  private Person owner;
  private Set<String> aliases;
 
  public Pet() {
    support = new ModelSupport(this);
    aliases = new PropertySet<String>(support, "aliases", true);
  }
 
  public ModelSupport getModelSupport() {
    return support;
  }
 
  public String getName() {
    return name;
  }
 
  public void setName(String name) {
    this.name = name;
  }
 
  public int getAge() {
    return age;
  }
 
  public void setAge(int age) {
    this.age = age;
  }
 
  public Person getOwner() {
    return owner;
  }
 
  public void setOwner(Person owner) {
    this.owner = owner;
  }
 
  public Set<String> aliases() {
    return aliases;
  }
}
TOP

Related Classes of com.peterhi.obsolete.Pet

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.