de.nierbeck.timeTrack
Class Assert

java.lang.Object
  extended by de.nierbeck.timeTrack.Assert

public final class Assert
extends java.lang.Object

Utility Class.

Author:
Achim

Method Summary
static java.lang.String dateValidation(java.lang.String date)
           
static void notNull(java.lang.Object obj)
          Checks if the given Object equals "null" if so it throws an IllegalArgumentException.
static java.lang.String timeValidation(java.lang.String time)
          validates the given Time string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

notNull

public static void notNull(java.lang.Object obj)
Checks if the given Object equals "null" if so it throws an IllegalArgumentException.

Parameters:
obj - the given Object
Throws:
java.lang.IllegalArgumentException

timeValidation

public static java.lang.String timeValidation(java.lang.String time)
validates the given Time string.

Parameters:
time - - the time to validate
Returns:
the validated time string

dateValidation

public static java.lang.String dateValidation(java.lang.String date)
Parameters:
date - - does nothing
Returns:
nothing


Copyright © 2003-2006 Nierbeck. All Rights Reserved.