protected EdgeEntityBuilder( EntityIdentifier identifier, Entity head, String headVis, Entity tail, String tailVis, String label) { super(identifier); checkNotNull(head); checkNotNull(headVis); checkNotNull(tail); checkNotNull(tailVis); checkNotNull(label); Attribute headAttribute = new Attribute( HEAD, head.getIdentifier(), setVisibility(new HashMap<String, String>(1), headVis)); Attribute tailAttribute = new Attribute( TAIL, tail.getIdentifier(), setVisibility(new HashMap<String, String>(1), tailVis)); attr(headAttribute); attr(tailAttribute); attr(new Attribute(LABEL, label)); }
@Deprecated public EdgeEntity( String type, String id, Entity head, String headVis, Entity tail, String tailVis, String label) { super( new EntityIdentifier(type, id), asList( new Attribute( HEAD, head.getIdentifier(), setVisibility(new HashMap<String, String>(1), checkNotNull(headVis))), new Attribute( TAIL, tail.getIdentifier(), setVisibility(new HashMap<String, String>(1), checkNotNull(tailVis))), new Attribute(LABEL, checkNotNull(label)))); }