Class HashOccurrence


  • public class HashOccurrence
    extends java.lang.Object
    Util class used to return Hash occurrences for Hash Trends service.
    Since:
    6.1.0
    Version:
    $Revision: 13752 $ $Date: 2011-10-13 14:10:51 -0300 (Thu, 13 Oct 2011) $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Integer DEFAULT_MAX_HASH_OCCURRENCES
      Field describing the default value of maximum number of hash trends desired to display, if the custom property has not been given a value yet.
    • Constructor Summary

      Constructors 
      Constructor Description
      HashOccurrence​(java.lang.String hashtag, int occurrences)
      Class constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHashtag()
      Returns the hashtag value
      int getOccurrences()
      Returns the number of occurrences of a given hashtag value
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT_MAX_HASH_OCCURRENCES

        public static final java.lang.Integer DEFAULT_MAX_HASH_OCCURRENCES
        Field describing the default value of maximum number of hash trends desired to display, if the custom property has not been given a value yet.
        Since:
        6.1.0
    • Constructor Detail

      • HashOccurrence

        public HashOccurrence​(java.lang.String hashtag,
                              int occurrences)
        Class constructor
        Parameters:
        hashtag - the hashtag
        occurrences - the ocurrences
        Since:
        6.1.0
    • Method Detail

      • getHashtag

        public java.lang.String getHashtag()
        Returns the hashtag value
        Returns:
        Since:
        6.1.0
      • getOccurrences

        public int getOccurrences()
        Returns the number of occurrences of a given hashtag value
        Parameters:
        hashtag -
        Since:
        6.1.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object