Record Class TestBeanReplacements.Definition
java.lang.Object
java.lang.Record
com.ultikits.ultitools.context.TestBeanReplacements.Definition
- Enclosing class:
TestBeanReplacements
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDefinition(Class<?> type, List<String> names, @Nullable Method factory) Creates an instance of aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Methodfactory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.names()Returns the value of thenamesrecord component.final StringtoString()Returns a string representation of this record class.Class<?> type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
names
-
factory
The field for thefactoryrecord component.
-
-
Constructor Details
-
Definition
Creates an instance of aDefinitionrecord class.- Parameters:
type- the value for thetyperecord componentnames- the value for thenamesrecord componentfactory- the value for thefactoryrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
names
-
factory
Returns the value of thefactoryrecord component.- Returns:
- the value of the
factoryrecord component
-