Package dev.daymor.sakuraboot.util
Record Class ReflectionUtils.ClassInfo
java.lang.Object
java.lang.Record
dev.daymor.sakuraboot.util.ReflectionUtils.ClassInfo
- Record Components:
clazz
- The class.parametersTypeName
- The parameters type name.parametersType
- The parameters type.
- Enclosing class:
ReflectionUtils
public static record ReflectionUtils.ClassInfo(Class<?> clazz, String[] parametersTypeName, ReflectionUtils.ClassInfo[] parametersType)
extends Record
Class information with the actual class and parameters type.
-
Constructor Summary
ConstructorsConstructorDescriptionClassInfo
(Class<?> clazz, String[] parametersTypeName, ReflectionUtils.ClassInfo[] parametersType) Creates an instance of aClassInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> clazz()
Returns the value of theclazz
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.Returns the value of theparametersType
record component.String[]
Returns the value of theparametersTypeName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ClassInfo
public ClassInfo(Class<?> clazz, String[] parametersTypeName, ReflectionUtils.ClassInfo[] parametersType) Creates an instance of aClassInfo
record class.- Parameters:
clazz
- the value for theclazz
record componentparametersTypeName
- the value for theparametersTypeName
record componentparametersType
- the value for theparametersType
record component
-
-
Method Details
-
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)
. -
clazz
Returns the value of theclazz
record component.- Returns:
- the value of the
clazz
record component
-
parametersTypeName
Returns the value of theparametersTypeName
record component.- Returns:
- the value of the
parametersTypeName
record component
-
parametersType
Returns the value of theparametersType
record component.- Returns:
- the value of the
parametersType
record component
-