Record Class RelatedEntity
java.lang.Object
java.lang.Record
org.odpi.openmetadata.commonservices.generichandlers.RelatedEntity
- Record Components:
- relationship- relationship providing the linkage
- entityDetail- entity at the far end
Defines a relationship and the entity at the other end of the relationship to a starting entity.
- 
Constructor SummaryConstructorsConstructorDescriptionRelatedEntity(Relationship relationship, EntityDetail entityDetail) Creates an instance of aRelatedEntityrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theentityDetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therelationshiprecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
RelatedEntityCreates an instance of aRelatedEntityrecord class.- Parameters:
- relationship- the value for the- relationshiprecord component
- entityDetail- the value for the- entityDetailrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
relationshipReturns the value of therelationshiprecord component.- Returns:
- the value of the relationshiprecord component
 
- 
entityDetailReturns the value of theentityDetailrecord component.- Returns:
- the value of the entityDetailrecord component
 
 
-