Package io.helidon.data.codegen.common
Record Class RepositoryInterfaceInfo
java.lang.Object
java.lang.Record
io.helidon.data.codegen.common.RepositoryInterfaceInfo
- Record Components:
typeName- type of the repositoryentityType- type of the entityidType- type of the ID
public record RepositoryInterfaceInfo(TypeName typeName, TypeName entityType, TypeName idType)
extends Record
Implemented interface info.
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryInterfaceInfo(TypeName typeName, TypeName entityType, TypeName idType) Creates an instance of aRepositoryInterfaceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryInterfaceInfoCreates an instance of implemented interface info.Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.idType()Returns the value of theidTyperecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
RepositoryInterfaceInfo
Creates an instance of aRepositoryInterfaceInforecord class.- Parameters:
typeName- the value for thetypeNamerecord componententityType- the value for theentityTyperecord componentidType- the value for theidTyperecord component
-
-
Method Details
-
create
Creates an instance of implemented interface info.- Parameters:
interfaceInfo- source type info- Returns:
- implemented interface info
-
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). -
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
idType
Returns the value of theidTyperecord component.- Returns:
- the value of the
idTyperecord component
-