public void setContributors( List contributors ) { getModel().setContributors( contributors ); }
public void setContributors( List<Contributor> contributors ) { getModel().setContributors( contributors ); }
@Override protected void mergeModel_Contributors( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { if ( target.getContributors().isEmpty() ) { target.setContributors( new ArrayList<>( source.getContributors() ) ); } }
protected void mergeModel_Contributors( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { List<Contributor> src = source.getContributors(); if ( !src.isEmpty() ) { List<Contributor> tgt = target.getContributors(); Map<Object, Contributor> merged = new LinkedHashMap<>( ( src.size() + tgt.size() ) * 2 ); for ( Contributor element : tgt ) { Object key = getContributorKey( element ); merged.put( key, element ); } for ( Contributor element : src ) { Object key = getContributorKey( element ); if ( sourceDominant || !merged.containsKey( key ) ) { merged.put( key, element ); } } target.setContributors( new ArrayList<>( merged.values() ) ); } }
model.setContributors( contributors ); while ( parser.nextTag() == XmlPullParser.START_TAG )
child.setContributors( parent.getContributors() );
child.setContributors( parent.getContributors() );
model.setContributors( contributors ); while ( parser.nextTag() == XmlPullParser.START_TAG )
result.setCiManagement( cloneCiManagement( src.getCiManagement() ) ); result.setContributors( cloneList( src.getContributors(), CONTRIBUTOR_CLONER ) );
/** * Set describes the contributors to a project that are not yet * committers. * * @param contributors */ public FluentModelBuilder withContributors(List<Contributor> contributors) { model.setContributors(contributors); return this; }
@Override public void set( Model model, List<Contributor> value ) { model.setContributors( value ); }; };
@Override public void setContributors(List<Contributor> contributors) { delegate.setContributors(contributors); }
model.setContributors( contributors ); while ( parser.nextTag() == XmlPullParser.START_TAG )
@Override protected void mergeModel_Contributors( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { if ( target.getContributors().isEmpty() ) { target.setContributors( new ArrayList<>( source.getContributors() ) ); } }
protected void mergeModel_Contributors( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { List<Contributor> src = source.getContributors(); if ( !src.isEmpty() ) { List<Contributor> tgt = target.getContributors(); Map<Object, Contributor> merged = new LinkedHashMap<Object, Contributor>( ( src.size() + tgt.size() ) * 2 ); for ( Contributor element : tgt ) { Object key = getContributorKey( element ); merged.put( key, element ); } for ( Contributor element : src ) { Object key = getContributorKey( element ); if ( sourceDominant || !merged.containsKey( key ) ) { merged.put( key, element ); } } target.setContributors( new ArrayList<Contributor>( merged.values() ) ); } }
model.setContributors( contributors ); while ( xmlStreamReader.nextTag() == XMLStreamConstants.START_ELEMENT )
model.setContributors( contributors ); while ( parser.nextTag() == XmlPullParser.START_TAG )
model.setContributors( contributors ); while ( parser.nextTag() == XmlPullParser.START_TAG )
model.setContributors( contributors ); while ( parser.nextTag() == XmlPullParser.START_TAG )
model.setContributors( translateContributors( v3Model.getContributors() ) );