Package gaiasky.gui.main
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.
Holds pairs of message and date for logs.
-
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
-
Method Details
-
finished
public boolean finished(long timeout) Has the message finished given the timeout? -
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. -
formatMessage
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
msg
Returns the value of themsgrecord component.- Returns:
- the value of the
msgrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-