Record Class PluginEntry
java.lang.Object
java.lang.Record
org.apache.logging.log4j.plugins.model.PluginEntry
- All Implemented Interfaces:
Comparable<PluginEntry>
public record PluginEntry(String key, String className, String name, String elementType, boolean printable, boolean deferChildren, String namespace)
extends Record
implements Comparable<PluginEntry>
Descriptor for
Plugin
metadata.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginEntry.Builder
builder()
Returns the value of theclassName
record component.int
boolean
Returns the value of thedeferChildren
record component.Returns the value of theelementType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.name()
Returns the value of thename
record component.Returns the value of thenamespace
record component.boolean
Returns the value of theprintable
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PluginEntry
public PluginEntry(String key, String className, String name, String elementType, boolean printable, boolean deferChildren, String namespace) Creates an instance of aPluginEntry
record class.- Parameters:
key
- the value for thekey
record componentclassName
- the value for theclassName
record componentname
- the value for thename
record componentelementType
- the value for theelementType
record componentprintable
- the value for theprintable
record componentdeferChildren
- the value for thedeferChildren
record componentnamespace
- the value for thenamespace
record component
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PluginEntry>
-
builder
-
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 '=='. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
className
Returns the value of theclassName
record component.- Returns:
- the value of the
className
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
elementType
Returns the value of theelementType
record component.- Returns:
- the value of the
elementType
record component
-
printable
public boolean printable()Returns the value of theprintable
record component.- Returns:
- the value of the
printable
record component
-
deferChildren
public boolean deferChildren()Returns the value of thedeferChildren
record component.- Returns:
- the value of the
deferChildren
record component
-
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-