Package org.emrick.project.dev
Record Class AppLog.Entry
java.lang.Object
java.lang.Record
org.emrick.project.dev.AppLog.Entry
- Enclosing class:
- AppLog
One captured line of output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theerrorrecord component.private final StringThe field for thetextrecord component.private final longThe field for thetimeMillisrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanerror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.longReturns the value of thetimeMillisrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
timeMillis
private final long timeMillisThe field for thetimeMillisrecord component. -
text
The field for thetextrecord component. -
error
private final boolean errorThe field for theerrorrecord component.
-
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
timeMillis- the value for thetimeMillisrecord componenttext- the value for thetextrecord componenterror- the value for theerrorrecord 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 '=='. -
timeMillis
public long timeMillis()Returns the value of thetimeMillisrecord component.- Returns:
- the value of the
timeMillisrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
error
public boolean error()Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-