Package br.unip.aps.estruturas
Record Class MedidorMemoria.Medicao
java.lang.Object
java.lang.Record
br.unip.aps.estruturas.MedidorMemoria.Medicao
- Enclosing class:
MedidorMemoria
public static record MedidorMemoria.Medicao(String algoritmo, String espacoTeorico, long bytesAlocados, int n, long bytesPorElemento)
extends Record
Espaco extra teorico x alocacao medida.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgoritmorecord component.longReturns the value of thebytesAlocadosrecord component.longReturns the value of thebytesPorElementorecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theespacoTeoricorecord component.final inthashCode()Returns a hash code value for this object.intn()Returns the value of thenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Medicao
public Medicao(String algoritmo, String espacoTeorico, long bytesAlocados, int n, long bytesPorElemento) Creates an instance of aMedicaorecord class.- Parameters:
algoritmo- the value for thealgoritmorecord componentespacoTeorico- the value for theespacoTeoricorecord componentbytesAlocados- the value for thebytesAlocadosrecord componentn- the value for thenrecord componentbytesPorElemento- the value for thebytesPorElementorecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
algoritmo
Returns the value of thealgoritmorecord component.- Returns:
- the value of the
algoritmorecord component
-
espacoTeorico
Returns the value of theespacoTeoricorecord component.- Returns:
- the value of the
espacoTeoricorecord component
-
bytesAlocados
public long bytesAlocados()Returns the value of thebytesAlocadosrecord component.- Returns:
- the value of the
bytesAlocadosrecord component
-
n
public int n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
bytesPorElemento
public long bytesPorElemento()Returns the value of thebytesPorElementorecord component.- Returns:
- the value of the
bytesPorElementorecord component
-