Record Class ResolvedUnionConstructor
java.lang.Object
java.lang.Record
me.bristermitten.mittenlib.codegen.union.ResolvedUnionConstructor
- All Implemented Interfaces:
GenericTypeSpec, RecordSpecLike
public record ResolvedUnionConstructor(com.palantir.javapoet.ClassName source, com.palantir.javapoet.ClassName name, RecordConstructorSpec constructor)
extends Record
implements RecordSpecLike
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedUnionConstructor(com.palantir.javapoet.ClassName source, com.palantir.javapoet.ClassName name, RecordConstructorSpec constructor) Creates an instance of aResolvedUnionConstructorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstructorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.palantir.javapoet.ClassNamename()Returns the value of thenamerecord component.com.palantir.javapoet.ClassNamesource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedUnionConstructor
public ResolvedUnionConstructor(com.palantir.javapoet.ClassName source, com.palantir.javapoet.ClassName name, RecordConstructorSpec constructor) Creates an instance of aResolvedUnionConstructorrecord class.- Parameters:
source- the value for thesourcerecord componentname- the value for thenamerecord componentconstructor- the value for theconstructorrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
source
public com.palantir.javapoet.ClassName source()Returns the value of thesourcerecord component.- Specified by:
sourcein interfaceRecordSpecLike- Returns:
- the value of the
sourcerecord component
-
name
public com.palantir.javapoet.ClassName name()Returns the value of thenamerecord component.- Specified by:
namein interfaceGenericTypeSpec- Returns:
- the value of the
namerecord component
-
constructor
Returns the value of theconstructorrecord component.- Specified by:
constructorin interfaceRecordSpecLike- Returns:
- the value of the
constructorrecord component
-