Record Class VeiculoResponseDTO
java.lang.Object
java.lang.Record
br.com.selfmaintenance.app.records.veiculo.VeiculoResponseDTO
-
Constructor Summary
ConstructorsConstructorDescriptionVeiculoResponseDTO(Long id, String placa, VeiculoTipo tipo, String marca, String modelo, int ano, String chassi, String renavam, String cor) Creates an instance of aVeiculoResponseDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintano()Returns the value of theanorecord component.chassi()Returns the value of thechassirecord component.cor()Returns the value of thecorrecord 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.marca()Returns the value of themarcarecord component.modelo()Returns the value of themodelorecord component.placa()Returns the value of theplacarecord component.renavam()Returns the value of therenavamrecord component.tipo()Returns the value of thetiporecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VeiculoResponseDTO
public VeiculoResponseDTO(Long id, String placa, VeiculoTipo tipo, String marca, String modelo, int ano, String chassi, String renavam, String cor) Creates an instance of aVeiculoResponseDTOrecord class.- Parameters:
id- the value for theidrecord componentplaca- the value for theplacarecord componenttipo- the value for thetiporecord componentmarca- the value for themarcarecord componentmodelo- the value for themodelorecord componentano- the value for theanorecord componentchassi- the value for thechassirecord componentrenavam- the value for therenavamrecord componentcor- the value for thecorrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
placa
Returns the value of theplacarecord component.- Returns:
- the value of the
placarecord component
-
tipo
Returns the value of thetiporecord component.- Returns:
- the value of the
tiporecord component
-
marca
Returns the value of themarcarecord component.- Returns:
- the value of the
marcarecord component
-
modelo
Returns the value of themodelorecord component.- Returns:
- the value of the
modelorecord component
-
ano
public int ano()Returns the value of theanorecord component.- Returns:
- the value of the
anorecord component
-
chassi
Returns the value of thechassirecord component.- Returns:
- the value of the
chassirecord component
-
cor
Returns the value of thecorrecord component.- Returns:
- the value of the
correcord component
-