Record Class ComunicazioniApi.Allegato
java.lang.Object
java.lang.Record
it.unina.picus.comunicazioni.api.ComunicazioniApi.Allegato
- Record Components:
id- identificativo dell'allegatonomeFile- nome visualizzatotipoMime- tipo MIME del contenutodimensioneByte- dimensione in byte
- Enclosing interface:
ComunicazioniApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedimensioneByterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.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
-
Allegato
Creates an instance of aAllegatorecord class.- Parameters:
id- the value for theidrecord componentnomeFile- the value for thenomeFilerecord componenttipoMime- the value for thetipoMimerecord componentdimensioneByte- the value for thedimensioneByterecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
nomeFile
-
tipoMime
-
dimensioneByte
public long dimensioneByte()Returns the value of thedimensioneByterecord component.- Returns:
- the value of the
dimensioneByterecord component
-