Back to project page tapad-android-sdk.
The source code is released under:
MIT License
If you think the Android project tapad-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tapad.tracking.deviceidentification; /*w ww .j a v a 2s. c om*/ import android.content.Context; import java.util.ArrayList; import java.util.List; /** * Holds a list of identifier sources and asks each for identifiers in turn. */ public class IdentifierSourceAggregator implements IdentifierSource { private List<IdentifierSource> sourceDelegates = new ArrayList<IdentifierSource>(); public IdentifierSourceAggregator() { } public IdentifierSourceAggregator(List<IdentifierSource> sources) { this.sourceDelegates.addAll(sources); } public void addIdentifierSource(IdentifierSource source) { this.sourceDelegates.add(source); } @Override public List<TypedIdentifier> get(Context context) { List<TypedIdentifier> aggregateIds = new ArrayList<TypedIdentifier>(); for (int i=0; i<this.sourceDelegates.size(); i++) { aggregateIds.addAll(this.sourceDelegates.get(i).get(context)); } return (aggregateIds); } }