mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-11 14:13:27 +00:00
Changed package naming across all examples.
This commit is contained in:
1 parent
703ebd3e20
commit
8524c75ba6
437 files changed
+1095
-1402
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package com.iluwatar.privateclassdata;
|
||||
|
||||
/**
|
||||
*
|
||||
* Stew ingredients
|
||||
*
|
||||
*/
|
||||
public class StewData {
|
||||
|
||||
private int numPotatoes;
|
||||
private int numCarrots;
|
||||
private int numMeat;
|
||||
private int numPeppers;
|
||||
|
||||
public StewData(int numPotatoes, int numCarrots, int numMeat, int numPeppers) {
|
||||
this.numPotatoes = numPotatoes;
|
||||
this.numCarrots = numCarrots;
|
||||
this.numMeat = numMeat;
|
||||
this.numPeppers = numPeppers;
|
||||
}
|
||||
|
||||
public int getNumPotatoes() {
|
||||
return numPotatoes;
|
||||
}
|
||||
|
||||
public int getNumCarrots() {
|
||||
return numCarrots;
|
||||
}
|
||||
|
||||
public int getNumMeat() {
|
||||
return numMeat;
|
||||
}
|
||||
|
||||
public int getNumPeppers() {
|
||||
return numPeppers;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user