@SuppressWarnings({ "rawtypes", "unchecked" }) public VertexType(Vertex<? extends Oplet<?, ?>, ?, ?> value, IdMapper<String> ids) { this.id = (value instanceof ExecutableVertex) ? ids.add(value, ((ExecutableVertex) value).getInvocationId()) : // Can't get an id from the vertex, generate unique value ids.add(value); this.invocation = new InvocationType(value.getInstance()); }
@SuppressWarnings({ "rawtypes", "unchecked" }) public VertexType(Vertex<? extends Oplet<?, ?>, ?, ?> value, IdMapper<String> ids) { this.id = (value instanceof ExecutableVertex) ? ids.add(value, ((ExecutableVertex) value).getInvocationId()) : // Can't get an id from the vertex, generate unique value ids.add(value); this.invocation = new InvocationType(value.getInstance()); }