private final Site site;
/** The edition number of the edition. */
- private final int edition;
+ private final int number;
/**
* Creates a new edition.
*
* @param site
* The site of the edition
- * @param edition
+ * @param number
* The edition number of the edition
*/
- public Edition(Site site, int edition) {
- Validation.begin().isNotNull("site", site).isPositive("edition", edition).check();
+ public Edition(Site site, int number) {
+ Validation.begin().isNotNull("site", site).isPositive("edition", number).check();
this.site = site;
- this.edition = edition;
+ this.number = number;
}
/**
*
* @return This edition’s edition number
*/
- public int getEdition() {
- return edition;
+ public int getNumber() {
+ return number;
}
//
*/
@Override
public String toString() {
- return getClass().getName() + "[site=" + site + ",edition=" + edition + "]";
+ return getClass().getName() + "[site=" + site + ",number=" + number + "]";
}
}