Record Class ResolvableKey<T>
java.lang.Object
java.lang.Record
org.apache.logging.log4j.plugins.di.spi.ResolvableKey<T>
public record ResolvableKey<T>(Key<T> key, Collection<String> aliases, DependencyChain dependencyChain)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResolvableKey
(Key<T> key, Collection<String> aliases, DependencyChain dependencyChain) Creates an instance of aResolvableKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()
Returns the value of thealiases
record component.Returns the value of thedependencyChain
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.static <T> ResolvableKey<T>
static <T> ResolvableKey<T>
of
(Key<T> key, Collection<String> aliases) static <T> ResolvableKey<T>
of
(Key<T> key, Collection<String> aliases, DependencyChain dependencyChain) static <T> ResolvableKey<T>
of
(Key<T> key, DependencyChain dependencyChain) final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ResolvableKey
Creates an instance of aResolvableKey
record class.- Parameters:
key
- the value for thekey
record componentaliases
- the value for thealiases
record componentdependencyChain
- the value for thedependencyChain
record component
-
-
Method Details
-
parameterizedType
-
namespace
-
of
-
of
-
of
-
of
public static <T> ResolvableKey<T> of(Key<T> key, Collection<String> aliases, DependencyChain dependencyChain) -
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)
. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
aliases
Returns the value of thealiases
record component.- Returns:
- the value of the
aliases
record component
-
dependencyChain
Returns the value of thedependencyChain
record component.- Returns:
- the value of the
dependencyChain
record component
-