Coverage Report - net.spy.digg.parsers.TopicContainerImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
TopicContainerImpl
100%
6/6
N/A
0
 
 1  
 package net.spy.digg.parsers;
 2  
 
 3  
 import java.io.Serializable;
 4  
 import java.util.ArrayList;
 5  
 
 6  
 import net.spy.digg.Topic;
 7  
 import net.spy.digg.TopicContainer;
 8  
 
 9  
 /**
 10  
  * A TopicContainer contains topics.
 11  
  */
 12  
 public class TopicContainerImpl extends ArrayList<Topic>
 13  
         implements TopicContainer, Serializable {
 14  
 
 15  
         private final String name;
 16  
         private final String shortName;
 17  
 
 18  
         /**
 19  
          * Construct a TopicContainer with the given name and short name.
 20  
          */
 21  
         public TopicContainerImpl(String n, String sn) {
 22  288
                 super();
 23  288
                 name=n;
 24  288
                 shortName=sn;
 25  288
         }
 26  
 
 27  
         /* (non-Javadoc)
 28  
          * @see net.spy.digg.TopicContainer#getName()
 29  
          */
 30  
         public String getName() {
 31  3
                 return name;
 32  
         }
 33  
 
 34  
         /* (non-Javadoc)
 35  
          * @see net.spy.digg.TopicContainer#getShortName()
 36  
          */
 37  
         public String getShortName() {
 38  270
                 return shortName;
 39  
         }
 40  
 
 41  
 }