Class SimpleFormatterImpl.IterInternal

java.lang.Object
com.ibm.icu.impl.SimpleFormatterImpl.IterInternal
Enclosing class:
SimpleFormatterImpl

public static class SimpleFormatterImpl.IterInternal extends Object
Internal iterator interface for maximum efficiency. Usage boilerplate:
 long state = 0;
 while (true) {
     state = IterInternal.step(state, compiledPattern, output);
     if (state == IterInternal.DONE) {
         break;
     }
     int argIndex = IterInternal.getArgIndex(state);
     // Append the string corresponding to argIndex to output
 }
 
  • Field Details

  • Constructor Details

    • IterInternal

      public IterInternal()
  • Method Details

    • step

      public static long step(long state, CharSequence compiledPattern, Appendable output)
    • getArgIndex

      public static int getArgIndex(long state)