Record Class DependencyContext
java.lang.Object
java.lang.Record
cool.scx.bean.dependency.DependencyContext
public record DependencyContext(DependencyContext.Type type, Class<?> beanClass, boolean singleton, FieldInfo fieldInfo, ConstructorInfo constructor, ParameterInfo parameter)
extends Record
依赖上下文
- Version:
- 0.0.1
- Author:
- scx567888
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDependencyContext(DependencyContext.Type type, Class<?> beanClass, boolean singleton, FieldInfo fieldInfo, ConstructorInfo constructor, ParameterInfo parameter) Creates an instance of aDependencyContextrecord class.DependencyContext(Class<?> beanClass, boolean singleton, ConstructorInfo constructor, ParameterInfo parameter) DependencyContext(Class<?> beanClass, boolean singleton, FieldInfo fieldInfo) -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Returns the value of thebeanClassrecord component.Returns the value of theconstructorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldInforecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theparameterrecord component.booleanReturns the value of thesingletonrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
DependencyContext
-
DependencyContext
public DependencyContext(Class<?> beanClass, boolean singleton, ConstructorInfo constructor, ParameterInfo parameter) -
DependencyContext
public DependencyContext(DependencyContext.Type type, Class<?> beanClass, boolean singleton, FieldInfo fieldInfo, ConstructorInfo constructor, ParameterInfo parameter) Creates an instance of aDependencyContextrecord class.- Parameters:
type- the value for thetyperecord componentbeanClass- the value for thebeanClassrecord componentsingleton- the value for thesingletonrecord componentfieldInfo- the value for thefieldInforecord componentconstructor- the value for theconstructorrecord componentparameter- the value for theparameterrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
beanClass
Returns the value of thebeanClassrecord component.- Returns:
- the value of the
beanClassrecord component
-
singleton
public boolean singleton()Returns the value of thesingletonrecord component.- Returns:
- the value of the
singletonrecord component
-
fieldInfo
Returns the value of thefieldInforecord component.- Returns:
- the value of the
fieldInforecord component
-
constructor
Returns the value of theconstructorrecord component.- Returns:
- the value of the
constructorrecord component
-
parameter
Returns the value of theparameterrecord component.- Returns:
- the value of the
parameterrecord component
-