Record Class UnZipScenarioService.UnzippedScenarioData
java.lang.Object
java.lang.Record
it.uniupo.simnova.service.scenario.operations.UnZipScenarioService.UnzippedScenarioData
- Record Components:
- scenarioJson- L'array di byte del contenuto del file- scenario.json.
- mediaFiles- Una- Mapdove la chiave è il nome del file multimediale (- String) e il valore è il contenuto del file come array di byte (- byte[]).
- Enclosing class:
- UnZipScenarioService
public static record UnZipScenarioService.UnzippedScenarioData(byte[] scenarioJson, Map<String,byte[]> mediaFiles)
extends Record 
Record immutabile che incapsula i dati estratti da un file ZIP di uno scenario.
 Contiene il contenuto del file 
scenario.json e una mappa di file multimediali.- Version:
- 1.0
- Author:
- Alessandro Zappatore
- 
Constructor SummaryConstructorsConstructorDescriptionUnzippedScenarioData(byte[] scenarioJson, Map<String, byte[]> mediaFiles) Creates an instance of aUnzippedScenarioDatarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themediaFilesrecord component.byte[]Returns the value of thescenarioJsonrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
UnzippedScenarioDataCreates an instance of aUnzippedScenarioDatarecord class.- Parameters:
- scenarioJson- the value for the- scenarioJsonrecord component
- mediaFiles- the value for the- mediaFilesrecord component
 
 
- 
- 
Method Details- 
toString
- 
hashCode
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
scenarioJsonpublic byte[] scenarioJson()Returns the value of thescenarioJsonrecord component.- Returns:
- the value of the scenarioJsonrecord component
 
- 
mediaFilesReturns the value of themediaFilesrecord component.- Returns:
- the value of the mediaFilesrecord component
 
 
-