/** * Gets an international string for the given key. This method does not check for the key * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown * when a {@link InternationalString#toString(Locale)} method is invoked. * * <div class="note"><b>API note:</b> * This method is redundant with the one expecting {@code Object...}, but avoid the creation * of a temporary array. There is no risk of confusion since the two methods delegate their * work to the same {@code format} method anyway.</div> * * @param key the key for the desired string. * @param arg values to substitute to "{0}". * @return an international string for the given key. */ public static InternationalString formatInternational(final short key, final Object arg) { return new International(key, arg); }
/** * Gets an international string for the given key. This method does not check for the key * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown * when a {@link InternationalString#toString(Locale)} method is invoked. * * <div class="note"><b>API note:</b> * This method is redundant with the one expecting {@code Object...}, but avoid the creation * of a temporary array. There is no risk of confusion since the two methods delegate their * work to the same {@code format} method anyway.</div> * * @param key the key for the desired string. * @param arg values to substitute to "{0}". * @return an international string for the given key. */ public static InternationalString formatInternational(final short key, final Object arg) { return new International(key, arg); }
/** * Gets an international string for the given key. This method does not check for the key * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown * when a {@link InternationalString#toString(Locale)} method is invoked. * * @param key the key for the desired string. * @param args values to substitute to "{0}", "{1}", <i>etc</i>. * @return an international string for the given key. */ public static InternationalString formatInternational(final short key, final Object... args) { return new International(key, args); } }
/** * Gets an international string for the given key. This method does not check for the key * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown * when a {@link InternationalString#toString(Locale)} method is invoked. * * @param key the key for the desired string. * @param args values to substitute to "{0}", "{1}", <i>etc</i>. * @return an international string for the given key. */ public static InternationalString formatInternational(final short key, final Object... args) { return new International(key, args); } }
/** * Gets an international string for the given key. This method does not check for the key * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown * when a {@link InternationalString#toString(Locale)} method is invoked. * * @param key the key for the desired string. * @return an international string for the given key. */ public static InternationalString formatInternational(final short key) { return new International(key); }
/** * Gets an international string for the given key. This method does not check for the key * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown * when a {@link InternationalString#toString(Locale)} method is invoked. * * @param key the key for the desired string. * @return an international string for the given key. */ public static InternationalString formatInternational(final short key) { return new International(key); }