Record Class Toast
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.Toast
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionToast(String icon, Toast.Type style) Creates an instance of aToastrecord 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.icon()Returns the value of theiconrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Toast
Creates an instance of aToastrecord class.- Parameters:
icon- the value for theiconrecord componentstyle- the value for thestylerecord 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). -
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-