Record Class ComunicazioniApi.FileAllegato
java.lang.Object
java.lang.Record
it.unina.picus.comunicazioni.api.ComunicazioniApi.FileAllegato
- Record Components:
nomeFile- nome del filetipoMime- tipo MIME del contenutocontenuto- byte del file, copiati all'ingresso e alla lettura
- Enclosing interface:
ComunicazioniApi
-
Constructor Summary
ConstructorsConstructorDescriptionFileAllegato(String nomeFile, String tipoMime, byte[] contenuto) Conserva una copia dei byte ricevuti. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Restituisce una copia dei byte del file.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nomeFile()Returns the value of thenomeFilerecord component.tipoMime()Returns the value of thetipoMimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileAllegato
-
-
Method Details
-
contenuto
public byte[] contenuto()Restituisce una copia dei byte del file.- Returns:
- contenuto del file
-
toString
-
hashCode
-
equals
Indicates 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). -
nomeFile
-
tipoMime
-