Package com.github.tadukoo.junit.logger
Record Class JUnitEasyLogger.JUnitEasyLoggerEntry
java.lang.Object
java.lang.Record
com.github.tadukoo.junit.logger.JUnitEasyLogger.JUnitEasyLoggerEntry
- Enclosing class:
- JUnitEasyLogger
public static record JUnitEasyLogger.JUnitEasyLoggerEntry(Level level, String message, Throwable throwable)
extends Record
JUnit Easy Logger Entry represents a single logged entry in the logger
Contains:
Contains:
Level, message, and Throwable- Version:
- Alpha v.0.1
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJUnitEasyLoggerEntry(Level level, String message, Throwable throwable) Creates an instance of aJUnitEasyLoggerEntryrecord 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.level()Returns the value of thelevelrecord component.message()Returns the value of themessagerecord component.Returns the value of thethrowablerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
level
The field for thelevelrecord component. -
message
The field for themessagerecord component. -
throwable
The field for thethrowablerecord component.
-
-
Constructor Details
-
JUnitEasyLoggerEntry
Creates an instance of aJUnitEasyLoggerEntryrecord class.- Parameters:
level- the value for thelevelrecord componentmessage- the value for themessagerecord componentthrowable- the value for thethrowablerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
throwable
Returns the value of thethrowablerecord component.- Returns:
- the value of the
throwablerecord component
-