Record Class AnosVeiculoParser.AnosVeiculo
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.comum.util.AnosVeiculoParser.AnosVeiculo
- Record Components:
anoConstrucao- ano de construção (à esquerda da barra)anoModelo- ano do modelo (à direita da barra)
- Enclosing class:
AnosVeiculoParser
-
Constructor Summary
ConstructorsConstructorDescriptionAnosVeiculo(Integer anoConstrucao, Integer anoModelo) Creates an instance of aAnosVeiculorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanoConstrucaorecord component.Returns the value of theanoModelorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnosVeiculo
Creates an instance of aAnosVeiculorecord class.- Parameters:
anoConstrucao- the value for theanoConstrucaorecord componentanoModelo- the value for theanoModelorecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
anoConstrucao
Returns the value of theanoConstrucaorecord component.- Returns:
- the value of the
anoConstrucaorecord component
-
anoModelo
-