Package ai.timefold.jpyinterpreter
Record Class FieldDescriptor
java.lang.Object
java.lang.Record
ai.timefold.jpyinterpreter.FieldDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionFieldDescriptor(String pythonFieldName, String javaFieldName, String declaringClassInternalName, String javaFieldTypeDescriptor, PythonLikeType fieldPythonLikeType, boolean isTrueFieldDescriptor, boolean isJavaType) Creates an instance of aFieldDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaringClassInternalNamerecord component.booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldPythonLikeTyperecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisJavaTyperecord component.booleanReturns the value of theisTrueFieldDescriptorrecord component.Returns the value of thejavaFieldNamerecord component.Returns the value of thejavaFieldTypeDescriptorrecord component.Returns the value of thepythonFieldNamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
FieldDescriptor
public FieldDescriptor(String pythonFieldName, String javaFieldName, String declaringClassInternalName, String javaFieldTypeDescriptor, PythonLikeType fieldPythonLikeType, boolean isTrueFieldDescriptor, boolean isJavaType) Creates an instance of aFieldDescriptorrecord class.- Parameters:
pythonFieldName- the value for thepythonFieldNamerecord componentjavaFieldName- the value for thejavaFieldNamerecord componentdeclaringClassInternalName- the value for thedeclaringClassInternalNamerecord componentjavaFieldTypeDescriptor- the value for thejavaFieldTypeDescriptorrecord componentfieldPythonLikeType- the value for thefieldPythonLikeTyperecord componentisTrueFieldDescriptor- the value for theisTrueFieldDescriptorrecord componentisJavaType- the value for theisJavaTyperecord component
-
-
Method Details
-
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 '=='. -
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. -
pythonFieldName
Returns the value of thepythonFieldNamerecord component.- Returns:
- the value of the
pythonFieldNamerecord component
-
javaFieldName
Returns the value of thejavaFieldNamerecord component.- Returns:
- the value of the
javaFieldNamerecord component
-
declaringClassInternalName
Returns the value of thedeclaringClassInternalNamerecord component.- Returns:
- the value of the
declaringClassInternalNamerecord component
-
javaFieldTypeDescriptor
Returns the value of thejavaFieldTypeDescriptorrecord component.- Returns:
- the value of the
javaFieldTypeDescriptorrecord component
-
fieldPythonLikeType
Returns the value of thefieldPythonLikeTyperecord component.- Returns:
- the value of the
fieldPythonLikeTyperecord component
-
isTrueFieldDescriptor
public boolean isTrueFieldDescriptor()Returns the value of theisTrueFieldDescriptorrecord component.- Returns:
- the value of the
isTrueFieldDescriptorrecord component
-
isJavaType
public boolean isJavaType()Returns the value of theisJavaTyperecord component.- Returns:
- the value of the
isJavaTyperecord component
-