Record Class ToolLogger.Message
java.lang.Object
java.lang.Record
org.openjdk.asmtools.common.ToolLogger.Message
- Enclosing class:
ToolLogger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EMessageKindThe field for thekindrecord component.private final StringThe field for thetextrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMessage(EMessageKind kind, String text) Creates an instance of aMessagerecord class.Message(EMessageKind kind, String format, Object... args) -
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.kind()Returns the value of thekindrecord component.booleannotFound()text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
kind
The field for thekindrecord component. -
text
The field for thetextrecord component.
-
-
Constructor Details
-
Message
Message(EMessageKind kind, String format, Object... args) -
Message
Creates an instance of aMessagerecord class.- Parameters:
kind- the value for thekindrecord componenttext- the value for thetextrecord component
-
-
Method Details
-
notFound
public boolean notFound() -
toString
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-