Package org.brerp.base.util
Record Class ValidacaoCNPJResultado
java.lang.Object
java.lang.Record
org.brerp.base.util.ValidacaoCNPJResultado
-
Constructor Summary
ConstructorsConstructorDescriptionValidacaoCNPJResultado(List<String> erros, String cnpjFormatado) Creates an instance of aValidacaoCNPJResultadorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecnpjFormatadorecord component.final booleanIndicates whether some other object is "equal to" this one.erros()Returns the value of theerrosrecord component.final inthashCode()Returns a hash code value for this object.booleanisValido()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidacaoCNPJResultado
Creates an instance of aValidacaoCNPJResultadorecord class.- Parameters:
erros- the value for theerrosrecord componentcnpjFormatado- the value for thecnpjFormatadorecord component
-
-
Method Details
-
isValido
public boolean isValido() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
erros
Returns the value of theerrosrecord component.- Returns:
- the value of the
errosrecord component
-
cnpjFormatado
Returns the value of thecnpjFormatadorecord component.- Returns:
- the value of the
cnpjFormatadorecord component
-