Record Class MessageBean
java.lang.Object
java.lang.Record
gaiasky.gui.main.MessageBean
- Record Components:
msg- The message, as a string.date- The date, as an instant.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageBean(String msg) MessageBean(String msg, Instant date) Creates an instance of aMessageBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinished(long timeout) Has the message finished given the timeout?formatMessage(boolean writeDates) final inthashCode()Returns a hash code value for this object.msg()Returns the value of themsgrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
MessageBean
-
MessageBean
-
-
Method Details
-
finished
public boolean finished(long timeout) Has the message finished given the timeout? -
toString
-
formatMessage
-
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). -
msg
-
date
-