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.Builderbuilder()Returns the value of theclassNamerecord component.intbooleanReturns the value of thedeferChildrenrecord component.Returns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.Returns the value of thenamespacerecord component.booleanReturns the value of theprintablerecord component.final StringtoString()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 aPluginEntryrecord class.- Parameters:
key- the value for thekeyrecord componentclassName- the value for theclassNamerecord componentname- the value for thenamerecord componentelementType- the value for theelementTyperecord componentprintable- the value for theprintablerecord componentdeferChildren- the value for thedeferChildrenrecord componentnamespace- the value for thenamespacerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin 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 thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-
printable
public boolean printable()Returns the value of theprintablerecord component.- Returns:
- the value of the
printablerecord component
-
deferChildren
public boolean deferChildren()Returns the value of thedeferChildrenrecord component.- Returns:
- the value of the
deferChildrenrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-