Interface NLSPlural


  • public interface NLSPlural
    Interface for using generated plural information classes.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int processCount​(int messageID, int count, int localeIndex)
      Processes the given count value through the plural expression for the given locale in order to know which form of a given plural message to use, if the message is not singular only altogether.
    • Method Detail

      • processCount

        int processCount​(int messageID,
                         int count,
                         int localeIndex)
                  throws IllegalArgumentException
        Processes the given count value through the plural expression for the given locale in order to know which form of a given plural message to use, if the message is not singular only altogether.
        Parameters:
        messageID - the ID of the message.
        count - the count value.
        localeIndex - the index of the locale to use the plural expression of.
        Returns:
        the index of the form of a plural message to use.
        Throws:
        IllegalArgumentException - if the locale argument doesn't match any of the locale name