Record Class RecyclerProperties
java.lang.Object
java.lang.Record
org.apache.logging.log4j.kit.recycler.RecyclerProperties
- Record Components:
factory
- The name of the recycler factory to use (cf.RecyclerFactoryProvider.getName()
),capacity
- The capacity of the recycler.
@NullMarked
@Log4jProperty(name="recycler")
public record RecyclerProperties(@Nullable String factory, @Nullable Integer capacity)
extends Record
A set of common configuration options for recyclers
-
Constructor Summary
ConstructorDescriptionRecyclerProperties
(@Nullable String factory, @Nullable Integer capacity) Creates an instance of aRecyclerProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptioncapacity()
Returns the value of thecapacity
record component.final boolean
Indicates whether some other object is "equal to" this one.@Nullable String
factory()
Returns the value of thefactory
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
capacity
Returns the value of thecapacity
record component.- Returns:
- the value of the
capacity
record component
-
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)
. -
factory
Returns the value of thefactory
record component.- Returns:
- the value of the
factory
record component
-