Back to project page mha-android.
The source code is released under:
Copyright (c) 2011-2012 Cameron Porter, Ryan Brown http://github.com/camporter/mha-android Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated...
If you think the Android project mha-android 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.teamacra.myhomeaudio.source; //from w w w . j a v a2s . c o m import java.util.ArrayList; import com.teamacra.myhomeaudio.media.MediaDescriptor; public class Source { private int id; private String name; private ArrayList<MediaDescriptor> mediaList; public Source(int id, String name) { this.id = id; this.name = name; this.mediaList = new ArrayList<MediaDescriptor>(); } public Source(int id, String name, ArrayList<MediaDescriptor> mediaList) { this.id = id; this.name = name; this.mediaList = mediaList; } public Source(Source source) { this.id = source.id(); this.name = source.name(); this.mediaList = source.mediaList(); } public int id() { return id; } public String name() { return name; } public ArrayList<MediaDescriptor> mediaList() { return mediaList; } public void setMediaList(ArrayList<MediaDescriptor> newMediaList) { this.mediaList.clear(); this.mediaList.addAll(newMediaList); } public String toString() { return name; } }