Record Class ComponenteDTO
java.lang.Object
java.lang.Record
br.com.intersys.systextil.function.pcpc.rotinarecalculo.dto.ComponenteDTO
public record ComponenteDTO(int sequencia, String nivel, String grupo, String sub, String item)
extends Record
Componente de estrutura (nível/grupo/subgrupo/item) lido da
basi_050,
com a sequencia usada para casar com pcpc_032.pcpc0302_seqorcor.-
Constructor Summary
ConstructorsConstructorDescriptionComponenteDTO(int sequencia, String nivel, String grupo, String sub, String item) Creates an instance of aComponenteDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.grupo()Returns the value of thegruporecord component.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.nivel()Returns the value of thenivelrecord component.intReturns the value of thesequenciarecord component.sub()Returns the value of thesubrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponenteDTO
Creates an instance of aComponenteDTOrecord class.- Parameters:
sequencia- the value for thesequenciarecord componentnivel- the value for thenivelrecord componentgrupo- the value for thegruporecord componentsub- the value for thesubrecord componentitem- the value for theitemrecord 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 '=='. -
sequencia
public int sequencia()Returns the value of thesequenciarecord component.- Returns:
- the value of the
sequenciarecord component
-
nivel
Returns the value of thenivelrecord component.- Returns:
- the value of the
nivelrecord component
-
grupo
Returns the value of thegruporecord component.- Returns:
- the value of the
gruporecord component
-
sub
Returns the value of thesubrecord component.- Returns:
- the value of the
subrecord component
-
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-