Package io.mateu.dtos
Record Class ProgressBarDto
java.lang.Object
java.lang.Record
io.mateu.dtos.ProgressBarDto
- All Implemented Interfaces:
ComponentMetadataDto
public record ProgressBarDto(boolean indeterminate, int min, int max, double value, String text, String theme)
extends Record
implements ComponentMetadataDto
Metadata for a html element
-
Constructor Summary
ConstructorsConstructorDescriptionProgressBarDto(boolean indeterminate, int min, int max, double value, String text, String theme) Creates an instance of aProgressBarDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theindeterminaterecord component.intmax()Returns the value of themaxrecord component.intmin()Returns the value of theminrecord component.text()Returns the value of thetextrecord component.theme()Returns the value of thethemerecord component.final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
ProgressBarDto
public ProgressBarDto(boolean indeterminate, int min, int max, double value, String text, String theme) Creates an instance of aProgressBarDtorecord class.- Parameters:
indeterminate- the value for theindeterminaterecord componentmin- the value for theminrecord componentmax- the value for themaxrecord componentvalue- the value for thevaluerecord componenttext- the value for thetextrecord componenttheme- the value for thethemerecord 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 '=='. -
indeterminate
public boolean indeterminate()Returns the value of theindeterminaterecord component.- Returns:
- the value of the
indeterminaterecord component
-
min
public int min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public int max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
theme
Returns the value of thethemerecord component.- Returns:
- the value of the
themerecord component
-