Package ai.timefold.jpyinterpreter
Record Class TypeHint
java.lang.Object
java.lang.Record
ai.timefold.jpyinterpreter.TypeHint
public record TypeHint(PythonLikeType type, List<AnnotationMetadata> annotationList, TypeHint[] genericArgs, PythonLikeType javaGetterType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTypeHint(PythonLikeType type, List<AnnotationMetadata> annotationList) TypeHint(PythonLikeType type, List<AnnotationMetadata> annotationList, TypeHint[] genericArgs, PythonLikeType javaGetterType) Creates an instance of aTypeHintrecord class.TypeHint(PythonLikeType type, List<AnnotationMetadata> annotationList, PythonLikeType javaGetterType) -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotations(List<AnnotationMetadata> addedAnnotations) Returns the value of theannotationListrecord component.booleanIndicates whether some other object is "equal to" this one.TypeHint[]Returns the value of thegenericArgsrecord component.@Nullable StringinthashCode()Returns a hash code value for this object.Returns the value of thejavaGetterTyperecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.static TypeHint
-
Constructor Details
-
TypeHint
public TypeHint(PythonLikeType type, List<AnnotationMetadata> annotationList, TypeHint[] genericArgs, PythonLikeType javaGetterType) Creates an instance of aTypeHintrecord class.- Parameters:
type- the value for thetyperecord componentannotationList- the value for theannotationListrecord componentgenericArgs- the value for thegenericArgsrecord componentjavaGetterType- the value for thejavaGetterTyperecord component
-
TypeHint
-
TypeHint
public TypeHint(PythonLikeType type, List<AnnotationMetadata> annotationList, PythonLikeType javaGetterType)
-
-
Method Details
-
getOverrideTypeDescriptor
-
addAnnotations
-
withoutAnnotations
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
annotationList
Returns the value of theannotationListrecord component.- Returns:
- the value of the
annotationListrecord component
-
genericArgs
Returns the value of thegenericArgsrecord component.- Returns:
- the value of the
genericArgsrecord component
-
javaGetterType
Returns the value of thejavaGetterTyperecord component.- Returns:
- the value of the
javaGetterTyperecord component
-