@Override public BomRelationship detach() { return new SimpleBomRelationship( this ); } }
@Override public BomRelationship selectTarget( final ProjectVersionRef ref ) { final ProjectVersionRef d = getDeclaring(); return new SimpleBomRelationship( getSources(), d, ref, getIndex(), isInherited(), isMixin() ); }
@Override public BomRelationship selectDeclaring( final ProjectVersionRef ref ) { final ProjectVersionRef t = getTarget(); return new SimpleBomRelationship( getSources(), ref, t, getIndex(), isInherited(), isMixin() ); }
@Override public BomRelationship addSource( final URI source ) { Set<URI> srcs = getSources(); srcs.add( source ); return new SimpleBomRelationship( srcs, getPomLocation(), getDeclaring(), getTarget(), getIndex(), isInherited(), isMixin() ); }
@Override public BomRelationship addSources( final Collection<URI> sources ) { Set<URI> srcs = getSources(); srcs.addAll( sources ); return new SimpleBomRelationship( srcs, getPomLocation(), getDeclaring(), getTarget(), getIndex(), isInherited(), isMixin() ); }
rel = new SimpleBomRelationship( sources, pomLocation, declaring, target, index, inherited, mixin ); break;
rel = new SimpleBomRelationship( sources, pomLocation, declaring, target, index, inherited, mixin ); break;
@Override public BomRelationship cloneFor( final ProjectVersionRef declaring ) { return new SimpleBomRelationship( getSources(), getPomLocation(), declaring, getTarget(), getIndex(), isInherited(), isMixin() ); }
try builder.withBoms( new SimpleBomRelationship( source, projectRef, bomView.asProjectVersionRef(), i, bomView.getOriginInfo().isInherited(), bomView.getOriginInfo().isMixin() ) );