2015-04-28 23:59:30 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2015-04-29 22:15:36 +03:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* RainbowFish is the initial schema
|
|
|
|
*
|
|
|
|
*/
|
2015-04-28 23:59:30 +03:00
|
|
|
public class RainbowFish implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
private String name;
|
|
|
|
private int age;
|
|
|
|
private int lengthMeters;
|
|
|
|
private int weightTons;
|
|
|
|
|
2015-04-29 18:50:08 +03:00
|
|
|
public RainbowFish(String name, int age, int lengthMeters, int weightTons) {
|
|
|
|
this.name = name;
|
|
|
|
this.age = age;
|
|
|
|
this.lengthMeters = lengthMeters;
|
|
|
|
this.weightTons = weightTons;
|
|
|
|
}
|
|
|
|
|
2015-04-28 23:59:30 +03:00
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
2015-04-29 18:50:08 +03:00
|
|
|
|
2015-04-28 23:59:30 +03:00
|
|
|
public int getAge() {
|
|
|
|
return age;
|
|
|
|
}
|
2015-04-29 18:50:08 +03:00
|
|
|
|
2015-04-28 23:59:30 +03:00
|
|
|
public int getLengthMeters() {
|
|
|
|
return lengthMeters;
|
|
|
|
}
|
2015-04-29 18:50:08 +03:00
|
|
|
|
2015-04-28 23:59:30 +03:00
|
|
|
public int getWeightTons() {
|
|
|
|
return weightTons;
|
|
|
|
}
|
2015-04-29 18:50:08 +03:00
|
|
|
|
2015-04-28 23:59:30 +03:00
|
|
|
}
|