Record Class ReflectionHelper.CanonicalBuilderInfo
java.lang.Object
java.lang.Record
org.tentackle.reflect.ReflectionHelper.CanonicalBuilderInfo
- Record Components:
constructor- the builder constructormethods- the builder's methods to set the attributes of the object to buildbuildMethod- the method to build the object from the attributes set in the builder
- Enclosing class:
ReflectionHelper
-
Constructor Summary
ConstructorsConstructorDescriptionCanonicalBuilderInfo(Constructor<?> constructor, Map<String, Method> methods, Method buildMethod) Creates an instance of aCanonicalBuilderInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuildMethodrecord component.Constructor<?> Returns the value of theconstructorrecord component.final booleanIndicates whether some other object is "equal to" this one.Gets a builder method by name.final inthashCode()Returns a hash code value for this object.methods()Returns the value of themethodsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CanonicalBuilderInfo
public CanonicalBuilderInfo(Constructor<?> constructor, Map<String, Method> methods, Method buildMethod) Creates an instance of aCanonicalBuilderInforecord class.- Parameters:
constructor- the value for theconstructorrecord componentmethods- the value for themethodsrecord componentbuildMethod- the value for thebuildMethodrecord component
-
-
Method Details
-
getMethod
-
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). -
constructor
Returns the value of theconstructorrecord component.- Returns:
- the value of the
constructorrecord component
-
methods
-
buildMethod
Returns the value of thebuildMethodrecord component.- Returns:
- the value of the
buildMethodrecord component
-