code: private String getCurrencyFormat(CurrencySymbolPosition position)
     {
        String result;
  
        switch (position)
        {
           case AFTER:
           {
              result = "1.1#";
              break;
           }
  
           case AFTER_WITH_SPACE:
           {
              result = "1.1 #";
              break;
           }
  
           case BEFORE_WITH_SPACE:
           {
              result = "# 1.1";
              break;
           }
  
           default:
           case BEFORE:
           {
              result = "#1.1";
              break;
           }
        }
  
        return result;
     }
docs: Generate a currency format.
  
  @param position currency symbol position
  @return currency format