Record Class GraphSchema.RelationDef
java.lang.Object
java.lang.Record
org.impulsegraph.api.schema.GraphSchema.RelationDef
- Enclosing class:
GraphSchema
-
Constructor Summary
ConstructorsConstructorDescriptionRelationDef(String name, String sourceEntity, String targetEntity) Creates an instance of aRelationDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thesourceEntityrecord component.Returns the value of thetargetEntityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RelationDef
Creates an instance of aRelationDefrecord class.- Parameters:
name- the value for thenamerecord componentsourceEntity- the value for thesourceEntityrecord componenttargetEntity- the value for thetargetEntityrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
sourceEntity
Returns the value of thesourceEntityrecord component.- Returns:
- the value of the
sourceEntityrecord component
-
targetEntity
Returns the value of thetargetEntityrecord component.- Returns:
- the value of the
targetEntityrecord component
-