es.cesar.quitesleep.utils
Class TokenizerUtils

java.lang.Object
  extended by es.cesar.quitesleep.utils.TokenizerUtils

public class TokenizerUtils
extends java.lang.Object

Author:
Cesar Valiente Gordo

Constructor Summary
TokenizerUtils()
           
 
Method Summary
static java.lang.String addIncreaseDate(java.lang.String time, int increase, java.lang.String delim)
          Add an increase of hours to the time passed, if the delim parameter is null we use the default parameter ":"
static void main(java.lang.String[] args)
           
static java.lang.String tokenizerPhoneNumber(java.lang.String phoneNumber, java.lang.String delim)
          Tokenize the passed phoneNumber erasing the string separator and return the phone number whitout these.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenizerUtils

public TokenizerUtils()
Method Detail

main

public static void main(java.lang.String[] args)

tokenizerPhoneNumber

public static java.lang.String tokenizerPhoneNumber(java.lang.String phoneNumber,
                                                    java.lang.String delim)
Tokenize the passed phoneNumber erasing the string separator and return the phone number whitout these.

Parameters:
phoneNumber -
delim -
Returns:
the new String without the delim chars
See Also:
String

addIncreaseDate

public static java.lang.String addIncreaseDate(java.lang.String time,
                                               int increase,
                                               java.lang.String delim)
Add an increase of hours to the time passed, if the delim parameter is null we use the default parameter ":"

Parameters:
time -
increase -
delim -
Returns:
the new time with the increase done
See Also:
String