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 aRepositoryInterfaceInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryInterfaceInfo
Creates an instance of implemented interface info.Returns the value of theentityType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.idType()
Returns the value of theidType
record component.final String
toString()
Returns a string representation of this record class.typeName()
Returns the value of thetypeName
record component.
-
Constructor Details
-
RepositoryInterfaceInfo
Creates an instance of aRepositoryInterfaceInfo
record class.- Parameters:
typeName
- the value for thetypeName
record componententityType
- the value for theentityType
record componentidType
- the value for theidType
record 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 thetypeName
record component.- Returns:
- the value of the
typeName
record component
-
entityType
Returns the value of theentityType
record component.- Returns:
- the value of the
entityType
record component
-
idType
Returns the value of theidType
record component.- Returns:
- the value of the
idType
record component
-