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
-
Constructor Summary
ConstructorDescriptionJUnitEasyLoggerEntry
(Level level, String message, Throwable throwable) Creates an instance of aJUnitEasyLoggerEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.level()
Returns the value of thelevel
record component.message()
Returns the value of themessage
record component.Returns the value of thethrowable
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
level
The field for thelevel
record component. -
message
The field for themessage
record component. -
throwable
The field for thethrowable
record component.
-
-
Constructor Details
-
JUnitEasyLoggerEntry
Creates an instance of aJUnitEasyLoggerEntry
record class.- Parameters:
level
- the value for thelevel
record componentmessage
- the value for themessage
record componentthrowable
- the value for thethrowable
record 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 thelevel
record component.- Returns:
- the value of the
level
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
throwable
Returns the value of thethrowable
record component.- Returns:
- the value of the
throwable
record component
-