Class DetachedRelationshipDescriptionImpl
- java.lang.Object
-
- com.graphaware.common.description.BasePartiallyComparable<RelationshipDescription>
-
- com.graphaware.common.description.relationship.BaseRelationshipDescription<DetachedPropertiesDescription>
-
- com.graphaware.common.description.relationship.DetachedRelationshipDescriptionImpl
-
- All Implemented Interfaces:
MutuallyExclusive<RelationshipDescription>
,PartiallyComparable<RelationshipDescription>
,DetachedRelationshipDescription
,RelationshipDescription
public class DetachedRelationshipDescriptionImpl extends BaseRelationshipDescription<DetachedPropertiesDescription> implements DetachedRelationshipDescription
Default production implementation ofDetachedRelationshipDescription
.
-
-
Constructor Summary
Constructors Constructor Description DetachedRelationshipDescriptionImpl(String relationshipType, Direction direction, DetachedPropertiesDescription propertiesDescription)
Construct a new relationship description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
DetachedRelationshipDescription
with(String propertyKey, Predicate predicate)
Construct a new description from this description by adding/replacing a properties predicate with a new one.-
Methods inherited from class com.graphaware.common.description.relationship.BaseRelationshipDescription
equals, getDirection, getPropertiesDescription, getType, hashCode, isMoreGeneralThan, isMutuallyExclusive, self
-
Methods inherited from class com.graphaware.common.description.BasePartiallyComparable
isMoreSpecificThan
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.graphaware.common.description.MutuallyExclusive
isMutuallyExclusive
-
Methods inherited from interface com.graphaware.common.description.PartiallyComparable
isMoreGeneralThan, isMoreSpecificThan
-
Methods inherited from interface com.graphaware.common.description.relationship.RelationshipDescription
getDirection, getPropertiesDescription, getType
-
-
-
-
Constructor Detail
-
DetachedRelationshipDescriptionImpl
public DetachedRelationshipDescriptionImpl(String relationshipType, Direction direction, DetachedPropertiesDescription propertiesDescription)
Construct a new relationship description.- Parameters:
relationshipType
- relationship type.direction
- direction.propertiesDescription
- properties description.
-
-
Method Detail
-
with
public DetachedRelationshipDescription with(String propertyKey, Predicate predicate)
Description copied from interface:DetachedRelationshipDescription
Construct a new description from this description by adding/replacing a properties predicate with a new one.- Specified by:
with
in interfaceDetachedRelationshipDescription
- Parameters:
propertyKey
- key of the property the predicate is for.predicate
- the predicate.- Returns:
- a new instance of relationship description.
-
-