| Constructor and Description |
|---|
Animal() |
Animal(String description,
float bodyWeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOffspring(Animal offspring) |
float |
getBodyWeight() |
String |
getDescription() |
Animal |
getFather() |
Long |
getId() |
Animal |
getMother() |
Set<Human> |
getOffspring() |
String |
getSerialNumber() |
Zoo |
getZoo() |
void |
setBodyWeight(float bodyWeight) |
void |
setDescription(String description) |
void |
setFather(Animal father) |
void |
setId(Long id) |
void |
setMother(Animal mother) |
void |
setOffspring(Set offspring) |
void |
setSerialNumber(String serialNumber) |
void |
setZoo(Zoo zoo) |
public Animal()
public Animal(String description, float bodyWeight)
public Long getId()
public void setId(Long id)
public String getDescription()
public void setDescription(String description)
public float getBodyWeight()
public void setBodyWeight(float bodyWeight)
public String getSerialNumber()
public void setSerialNumber(String serialNumber)
public Zoo getZoo()
public void setZoo(Zoo zoo)
public Animal getMother()
public void setMother(Animal mother)
public Animal getFather()
public void setFather(Animal father)
public void addOffspring(Animal offspring)
public void setOffspring(Set offspring)
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.