Record Class ConverterInformation
java.lang.Object
java.lang.Record
dev.voidframework.core.classestoload.ConverterInformation
- Record Components:
sourceTypeClass- The source type classtargetTypeClass- The target type classconverterTypeClass- The converter type class
public record ConverterInformation(Class<?> sourceTypeClass, Class<?> targetTypeClass, Class<?> converterTypeClass)
extends Record
Converter information.
-
Constructor Summary
ConstructorsConstructorDescriptionConverterInformation(Class<?> sourceTypeClass, Class<?> targetTypeClass, Class<?> converterTypeClass) Creates an instance of aConverterInformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Returns the value of theconverterTypeClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?>Returns the value of thesourceTypeClassrecord component.Class<?>Returns the value of thetargetTypeClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConverterInformation
public ConverterInformation(Class<?> sourceTypeClass, Class<?> targetTypeClass, Class<?> converterTypeClass) Creates an instance of aConverterInformationrecord class.- Parameters:
sourceTypeClass- the value for thesourceTypeClassrecord componenttargetTypeClass- the value for thetargetTypeClassrecord componentconverterTypeClass- the value for theconverterTypeClassrecord 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). -
sourceTypeClass
Returns the value of thesourceTypeClassrecord component.- Returns:
- the value of the
sourceTypeClassrecord component
-
targetTypeClass
Returns the value of thetargetTypeClassrecord component.- Returns:
- the value of the
targetTypeClassrecord component
-
converterTypeClass
Returns the value of theconverterTypeClassrecord component.- Returns:
- the value of the
converterTypeClassrecord component
-