示例#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();
 }
示例#2
0
 public void updateDescription(HashMap<String, String> description) {
   descriptionBinaryData = Utils.byteArrayFromMap(description);
 }
示例#3
0
 public HashMap<String, String> getDescription() {
   return Utils.mapFromByteArray(descriptionBinaryData);
 }