Record Class LFileModelEvent
java.lang.Object
java.lang.Record
com.io7m.laurel.filemodel.LFileModelEvent
- Record Components:
message- The event messageprogress- The progress value, if any
- All Implemented Interfaces:
LFileModelEventType
public record LFileModelEvent(String message, OptionalDouble progress)
extends Record
implements LFileModelEventType
An event raised by the model.
-
Constructor Summary
ConstructorsConstructorDescriptionLFileModelEvent(String message, OptionalDouble progress) An event raised by the model. -
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.message()Returns the value of themessagerecord component.progress()Returns the value of theprogressrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LFileModelEvent
An event raised by the model.- Parameters:
message- The event messageprogress- The progress value, if any
-
-
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). -
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceLFileModelEventType- Returns:
- the value of the
messagerecord component
-
progress
Returns the value of theprogressrecord component.- Specified by:
progressin interfaceLFileModelEventType- Returns:
- the value of the
progressrecord component
-