com.gridsystems.utils
Class LangUtils

java.lang.Object
  extended by com.gridsystems.utils.LangUtils

public final class LangUtils
extends java.lang.Object

General Language Utilities.

Version:
1.0
Author:
Xmas

Method Summary
static java.lang.String replaceAll(java.lang.String src, java.lang.String match, java.lang.String replacement)
          Deprecated. Use String.replaceAll(String, String) instead
static java.lang.String timeFormat(long ms)
          Deprecated. Use Formatter instead
static java.lang.String twoDigits(java.lang.String str)
          Deprecated. Use Formatter instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

replaceAll

public static java.lang.String replaceAll(java.lang.String src,
                                          java.lang.String match,
                                          java.lang.String replacement)
Deprecated. Use String.replaceAll(String, String) instead

Replace a substring for other substring inside a String.

Parameters:
src - Source String
match - Substring to be replaced
replacement - Substring to replace with
Returns:
String containing src, with match replaced with replacement

timeFormat

public static java.lang.String timeFormat(long ms)
Deprecated. Use Formatter instead

Format a long in milliseconds to hh:mm:ss.

Parameters:
ms - milliseconds to be formatted
Returns:
String with format "hh:mm:ss"

twoDigits

public static java.lang.String twoDigits(java.lang.String str)
Deprecated. Use Formatter instead

Pads a String with a leading '0' so it is 2 or more digits long.

Parameters:
str - String to be padded
Returns:
String padded with a leading '0' if str.length is 1 or '00' if it is 0.


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.