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