Ajocado API 1.0.0.Alpha2

org.jboss.arquillian.ajocado.utils
Class SimplifiedFormat

java.lang.Object
  extended by org.jboss.arquillian.ajocado.utils.SimplifiedFormat

public final class SimplifiedFormat
extends Object

Formats using simplified MessageFormat syntax: {} are used as placeholders in order of arguments; {number} are placeholders with given argument number.

When filling the placeholders by given arguments are compelete, rest of the numbered placeholders are decreased by number of arguments in previous format action.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
static String format(String message, Object... args)
          Parametrize given string with arguments, using {} or {number} (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

format

public static String format(String message,
                            Object... args)
Parametrize given string with arguments, using {} or {number} (e.g. {0}, {1}, ...) as placeholders.

Parameters:
message - message to format
args - used to formatting given format string
Returns:
string formatted using given arguments

Ajocado API 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.