public ProductCompDto(ProductComputationyInDay prodComp) { nameProduct = prodComp.getNameProduct(); dayMass = prodComp.getDayMass(); nightMass = prodComp.getNightMass(); dayMassSV = prodComp.getDayMassSV(); nightMassSV = prodComp.getNightMassSV(); dayMassWater = prodComp.getDayMassWater(); nightMassWater = prodComp.getNightMassWater(); metanDay = prodComp.getMetanDay(); metanNight = prodComp.getMetanNight(); }
public ProductCompForRead(ProductComputationyInDay productCompOrigin) { nameProduct = productCompOrigin.getNameProduct(); dayMassList = productCompOrigin.getDayMassList(); nightMassList = productCompOrigin.getNightMassList(); dayMass = productCompOrigin.getDayMass(); nightMass = productCompOrigin.getNightMass(); dayMassSV = productCompOrigin.getDayMassSV(); nightMassSV = productCompOrigin.getNightMassSV(); dayMassWater = productCompOrigin.getDayMassWater(); nightMassWater = productCompOrigin.getNightMassWater(); metanDay = productCompOrigin.getMetanDay(); metanNight = productCompOrigin.getMetanNight(); }