de.smartics.exceptions.i18n.message
Class Helper

Package class diagram package Helper
java.lang.Object
  extended by de.smartics.exceptions.i18n.message.Helper

public final class Helper
     
     
extends Object

Provides helper methods for this package.

This is internal API.


Method Summary
static String capitalize(String input)
          This method transforms the first character to upper case and returns the result.
static List<String> split(String delimiterSeparatedElements)
          Parses the string and returns the comma separated elements as a list of String objects.
static List<String> split(String delimiterSeparatedElements, String delimiters)
          Parses the string and returns the delimiter separated elements as a list of String objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

capitalize

public static String capitalize(String input)
This method transforms the first character to upper case and returns the result.

Parameters:
input - the string to transform.
Returns:
the captialized string.

split

public static List<String> split(String delimiterSeparatedElements)
Parses the string and returns the comma separated elements as a list of String objects. If the string is null or contains no character (its length is zero), the empty list is returned.

Parameters:
delimiterSeparatedElements - the string to parse, trimmed from whitespaces.
Returns:
a list of trimmed strings.

split

public static List<String> split(String delimiterSeparatedElements,
                                 String delimiters)
Parses the string and returns the delimiter separated elements as a list of String objects. If the string is null or contains no character (its length is zero), the empty list is returned.

Parameters:
delimiterSeparatedElements - the string to parse, trimmed from whitespaces.
delimiters - a string that contains all delimiters used to split the string.
Returns:
a list of trimmed strings.


Copyright © 2007-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.