Record Class ReferenciaObjeto
java.lang.Object
java.lang.Record
br.com.xadm.comum.armazenamento.ReferenciaObjeto
- Record Components:
bucket- bucket onde o objeto estáchave- chave (key) do objetotamanhoBytes- tamanho do objeto em bytes
-
Constructor Summary
ConstructorsConstructorDescriptionReferenciaObjeto(String bucket, String chave, long tamanhoBytes) Creates an instance of aReferenciaObjetorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbucket()Returns the value of thebucketrecord component.chave()Returns the value of thechaverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thetamanhoBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReferenciaObjeto
Creates an instance of aReferenciaObjetorecord class.- Parameters:
bucket- the value for thebucketrecord componentchave- the value for thechaverecord componenttamanhoBytes- the value for thetamanhoBytesrecord 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. -
bucket
-
chave
-
tamanhoBytes
public long tamanhoBytes()Returns the value of thetamanhoBytesrecord component.- Returns:
- the value of the
tamanhoBytesrecord component
-