Class MessageFormat.PluralSelectorContext

  • Enclosing class:
    MessageFormat

    private static final class MessageFormat.PluralSelectorContext
    extends java.lang.Object
    Mutable input/output values for the PluralSelectorProvider. Separate so that it is possible to make MessageFormat Freezable.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String argName  
      (package private) java.text.Format formatter  
      (package private) boolean forReplaceNumber
      true if number-offset was formatted with the stock number formatter
      (package private) java.lang.Number number
      argument number - plural offset
      (package private) int numberArgIndex
      -1 if REPLACE_NUMBER, 0 arg not found, >0 ARG_START index
      (package private) java.lang.String numberString
      formatted argument number - plural offset
      (package private) double offset  
      (package private) int startIndex  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PluralSelectorContext​(int start, java.lang.String name, java.lang.Number num, double off)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • startIndex

        int startIndex
      • argName

        java.lang.String argName
      • number

        java.lang.Number number
        argument number - plural offset
      • offset

        double offset
      • numberArgIndex

        int numberArgIndex
        -1 if REPLACE_NUMBER, 0 arg not found, >0 ARG_START index
      • formatter

        java.text.Format formatter
      • numberString

        java.lang.String numberString
        formatted argument number - plural offset
      • forReplaceNumber

        boolean forReplaceNumber
        true if number-offset was formatted with the stock number formatter
    • Constructor Detail

      • PluralSelectorContext

        private PluralSelectorContext​(int start,
                                      java.lang.String name,
                                      java.lang.Number num,
                                      double off)
    • Method Detail

      • toString

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