Example #1
0
 public Shop(
     String name,
     Collection<Refrigerator> refrigerators,
     int oos,
     HashMap<String, String> description) {
   this.name = name;
   this.refrigerators = refrigerators;
   this.oos = oos;
   descriptionBinaryData = Utils.byteArrayFromMap(description);
   this.refrigeratorsCount = refrigerators.size();
 }
Example #2
0
 public void updateDescription(HashMap<String, String> description) {
   descriptionBinaryData = Utils.byteArrayFromMap(description);
 }
Example #3
0
 public HashMap<String, String> getDescription() {
   return Utils.mapFromByteArray(descriptionBinaryData);
 }