Record Class DirectedCrossReferenceInfo
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.translator.crossreference.DirectedCrossReferenceInfo
public record DirectedCrossReferenceInfo(PartialRelation sourceType, Multiplicity sourceMultiplicity, PartialRelation targetType, Multiplicity targetMultiplicity, TruthValue defaultValue, boolean partial)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDirectedCrossReferenceInfo(PartialRelation sourceType, Multiplicity sourceMultiplicity, PartialRelation targetType, Multiplicity targetMultiplicity, TruthValue defaultValue, boolean partial) Creates an instance of aDirectedCrossReferenceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanpartial()Returns the value of thepartialrecord component.Returns the value of thesourceMultiplicityrecord component.Returns the value of thesourceTyperecord component.Returns the value of thetargetMultiplicityrecord component.Returns the value of thetargetTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DirectedCrossReferenceInfo
public DirectedCrossReferenceInfo(PartialRelation sourceType, Multiplicity sourceMultiplicity, PartialRelation targetType, Multiplicity targetMultiplicity, TruthValue defaultValue, boolean partial) Creates an instance of aDirectedCrossReferenceInforecord class.- Parameters:
sourceType- the value for thesourceTyperecord componentsourceMultiplicity- the value for thesourceMultiplicityrecord componenttargetType- the value for thetargetTyperecord componenttargetMultiplicity- the value for thetargetMultiplicityrecord componentdefaultValue- the value for thedefaultValuerecord componentpartial- the value for thepartialrecord component
-
-
Method Details
-
isConstrained
public boolean isConstrained() -
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 '=='. -
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
sourceMultiplicity
Returns the value of thesourceMultiplicityrecord component.- Returns:
- the value of the
sourceMultiplicityrecord component
-
targetType
Returns the value of thetargetTyperecord component.- Returns:
- the value of the
targetTyperecord component
-
targetMultiplicity
Returns the value of thetargetMultiplicityrecord component.- Returns:
- the value of the
targetMultiplicityrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
partial
public boolean partial()Returns the value of thepartialrecord component.- Returns:
- the value of the
partialrecord component
-