Record Class FieldDescriptor

java.lang.Object
java.lang.Record
ai.timefold.jpyinterpreter.FieldDescriptor

public record FieldDescriptor(String pythonFieldName, String javaFieldName, String declaringClassInternalName, String javaFieldTypeDescriptor, PythonLikeType fieldPythonLikeType, boolean isTrueFieldDescriptor, boolean isJavaType) extends Record
  • Constructor Details

    • FieldDescriptor

      public FieldDescriptor(String pythonFieldName, String javaFieldName, String declaringClassInternalName, String javaFieldTypeDescriptor, PythonLikeType fieldPythonLikeType, boolean isTrueFieldDescriptor, boolean isJavaType)
      Creates an instance of a FieldDescriptor record class.
      Parameters:
      pythonFieldName - the value for the pythonFieldName record component
      javaFieldName - the value for the javaFieldName record component
      declaringClassInternalName - the value for the declaringClassInternalName record component
      javaFieldTypeDescriptor - the value for the javaFieldTypeDescriptor record component
      fieldPythonLikeType - the value for the fieldPythonLikeType record component
      isTrueFieldDescriptor - the value for the isTrueFieldDescriptor record component
      isJavaType - the value for the isJavaType record component
  • Method Details

    • equals

      public boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • pythonFieldName

      public String pythonFieldName()
      Returns the value of the pythonFieldName record component.
      Returns:
      the value of the pythonFieldName record component
    • javaFieldName

      public String javaFieldName()
      Returns the value of the javaFieldName record component.
      Returns:
      the value of the javaFieldName record component
    • declaringClassInternalName

      public String declaringClassInternalName()
      Returns the value of the declaringClassInternalName record component.
      Returns:
      the value of the declaringClassInternalName record component
    • javaFieldTypeDescriptor

      public String javaFieldTypeDescriptor()
      Returns the value of the javaFieldTypeDescriptor record component.
      Returns:
      the value of the javaFieldTypeDescriptor record component
    • fieldPythonLikeType

      public PythonLikeType fieldPythonLikeType()
      Returns the value of the fieldPythonLikeType record component.
      Returns:
      the value of the fieldPythonLikeType record component
    • isTrueFieldDescriptor

      public boolean isTrueFieldDescriptor()
      Returns the value of the isTrueFieldDescriptor record component.
      Returns:
      the value of the isTrueFieldDescriptor record component
    • isJavaType

      public boolean isJavaType()
      Returns the value of the isJavaType record component.
      Returns:
      the value of the isJavaType record component