Class HashOccurrence


  • public class HashOccurrence
    extends 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 Detail

      • DEFAULT_MAX_HASH_OCCURRENCES

        public static final 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​(String hashtag,
                              int occurrences)
        Class constructor
        Parameters:
        hashtag - the hashtag
        occurrences - the ocurrences
        Since:
        6.1.0
    • Method Detail

      • getHashtag

        public 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