private KamProtoEdge(Integer kamEdgeId, KamProtoNode sourceNode,
RelationshipType relationshipType, KamProtoNode targetNode) {
super(null, kamEdgeId);
if (sourceNode == null) {
throw new InvalidArgument("sourceNode", sourceNode);
}
if (relationshipType == null) {
throw new InvalidArgument("relationshipType", relationshipType);
}
if (targetNode == null) {
throw new InvalidArgument("targetNode", targetNode);
}
this.sourceNode = sourceNode;
this.relationshipType = relationshipType;
this.targetNode = targetNode;