X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fandroid%2Fnotification-service%2Fsrc%2Fmain%2Fjava%2Forg%2Fiotivity%2Fservice%2Fns%2Fcommon%2FTopicsList.java;h=62c288e7450bd0a4e62dec24249b2d76e8d16d5f;hb=8229635f6d207516ccbbdf23b13be164e0fc1787;hp=8572cccdd83a4a6862b0a7761aedbf17d98c53b2;hpb=dfd2b5b33435d137d2344482bba6d9d5710e8823;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/TopicsList.java b/service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/TopicsList.java index 8572ccc..62c288e 100644 --- a/service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/TopicsList.java +++ b/service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/TopicsList.java @@ -19,41 +19,38 @@ //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= package org.iotivity.service.ns.common; + import android.util.Log; import java.util.Vector; import java.util.Iterator; + /** - * @class TopicsList - * @brief This class provides implementation of Topics List - */ -public class TopicsList -{ - private static final String LOG_TAG = "NotificationService_TopicList"; - - public Vector mTopicsList = new Vector(); - - public void addTopic(String topicname, Topic.TopicState state) - { - mTopicsList.add(new Topic(topicname,state)); + * + * This class provides implementation of Topics List. + * + */ +public class TopicsList { + + private static final String LOG_TAG = "NotificationService_TopicList"; + + private Vector mTopicsList = new Vector(); + + public void addTopic(String topicname, Topic.TopicState state) { + mTopicsList.add(new Topic(topicname, state)); } - public void removeTopic(String topicName) - { - Iterator it = getTopicsList().iterator(); - while(it.hasNext()) - { + public void removeTopic(String topicName) { + Iterator it = getTopicsList().iterator(); + while (it.hasNext()) { Topic element = it.next(); - if(element.getTopicName().equals(topicName)) - { + if (element.getTopicName().equals(topicName)) { mTopicsList.remove(element); } } } - public Vector getTopicsList() - { + public Vector getTopicsList() { return mTopicsList; } } -