Record Class EntityRelationDescription
java.lang.Object
java.lang.Record
com.priint.pubserverapi.entitymodel.EntityRelationDescription
- All Implemented Interfaces:
Serializable
public record EntityRelationDescription(String targetIdentifier, String relationship, String type, String cardinality, int sequence)
extends Record
implements Serializable
Structural edge. Relationship distinguishes CONTENT, SUBENTITY, CORD and CONTENT_METADATA.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityRelationDescription(String targetIdentifier, String relationship, String type, String cardinality, int sequence) Creates an instance of aEntityRelationDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecardinalityrecord 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.intsequence()Returns the value of thesequencerecord component.Returns the value of thetargetIdentifierrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
EntityRelationDescription
public EntityRelationDescription(String targetIdentifier, String relationship, String type, String cardinality, int sequence) Creates an instance of aEntityRelationDescriptionrecord class.- Parameters:
targetIdentifier- the value for thetargetIdentifierrecord componentrelationship- the value for therelationshiprecord componenttype- the value for thetyperecord componentcardinality- the value for thecardinalityrecord componentsequence- the value for thesequencerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
targetIdentifier
Returns the value of thetargetIdentifierrecord component.- Returns:
- the value of the
targetIdentifierrecord component
-
relationship
Returns the value of therelationshiprecord component.- Returns:
- the value of the
relationshiprecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
cardinality
Returns the value of thecardinalityrecord component.- Returns:
- the value of the
cardinalityrecord component
-
sequence
public int sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-