Package br.unip.aps.ui.componentes
Record Class BarrasHorizontais.Item
java.lang.Object
java.lang.Record
br.unip.aps.ui.componentes.BarrasHorizontais.Item
- Enclosing class:
BarrasHorizontais
public static record BarrasHorizontais.Item(String rotulo, double valor, String texto, String classe, boolean destaque, String dica)
extends Record
Item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclasse()Returns the value of theclasserecord component.booleandestaque()Returns the value of thedestaquerecord component.dica()Returns the value of thedicarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rotulo()Returns the value of therotulorecord component.texto()Returns the value of thetextorecord component.final StringtoString()Returns a string representation of this record class.doublevalor()Returns the value of thevalorrecord component.
-
Constructor Details
-
Item
public Item(String rotulo, double valor, String texto, String classe, boolean destaque, String dica) Creates an instance of aItemrecord class.- Parameters:
rotulo- the value for therotulorecord componentvalor- the value for thevalorrecord componenttexto- the value for thetextorecord componentclasse- the value for theclasserecord componentdestaque- the value for thedestaquerecord componentdica- the value for thedicarecord 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 '=='. -
rotulo
Returns the value of therotulorecord component.- Returns:
- the value of the
rotulorecord component
-
valor
public double valor()Returns the value of thevalorrecord component.- Returns:
- the value of the
valorrecord component
-
texto
Returns the value of thetextorecord component.- Returns:
- the value of the
textorecord component
-
classe
Returns the value of theclasserecord component.- Returns:
- the value of the
classerecord component
-
destaque
public boolean destaque()Returns the value of thedestaquerecord component.- Returns:
- the value of the
destaquerecord component
-
dica
Returns the value of thedicarecord component.- Returns:
- the value of the
dicarecord component
-