Class News


  • public class News
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  News.Link  
    • Constructor Summary

      Constructors 
      Constructor Description
      News()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()  
      java.lang.String getEnd()  
      java.util.List<News.Link> getLinks()  
      java.util.List<java.lang.String> getPlaceNames()
      Returns an array of country names looked up from the country codes associated with this news entry.
      java.util.List<java.lang.String> getPlaces()  
      java.util.List<java.lang.String> getProtocols()  
      java.lang.String getShortDescription()  
      java.lang.String getStart()  
      boolean isOngoing()
      Returns whether or not the event is ongoing.
      boolean isUnknown()
      Returns whether or not the reason for an event is known.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • News

        public News()
    • Method Detail

      • getStart

        public java.lang.String getStart()
      • getEnd

        public java.lang.String getEnd()
      • isOngoing

        public boolean isOngoing()
        Returns whether or not the event is ongoing. If no value was set, it is assumed that the event is not ongoing.
      • getPlaces

        public java.util.List<java.lang.String> getPlaces()
      • getPlaceNames

        public java.util.List<java.lang.String> getPlaceNames()
        Returns an array of country names looked up from the country codes associated with this news entry. If a country is unknown, that country will be added to the list as "Unknown Country". There is no deduplication of countries, including the output of "Unknown Country".
      • getProtocols

        public java.util.List<java.lang.String> getProtocols()
      • getDescription

        public java.lang.String getDescription()
      • getShortDescription

        public java.lang.String getShortDescription()
      • getLinks

        public java.util.List<News.Link> getLinks()
      • isUnknown

        public boolean isUnknown()
        Returns whether or not the reason for an event is known. If no value was set, it is assumed that the reason is known.