vc.util
Class DatatypeUtility

java.lang.Object
  |
  +--vc.util.DatatypeUtility

public class DatatypeUtility
extends java.lang.Object

DatatypeUtility is a utility for boolean and arithmatic operations for the the abstarct datatypes.


Field Summary
static int EqualTo
          Constant to represent the that the first value/variable/literal is equal to the second value/variable/literal in a boolean comparision
static int GreaterThan
          Constant to represent the that the first value/variable/literal is greater that the second value/variable/literal in a boolean comparision
static int LessThan
          Constant to represent the that the first value/variable/literal is less that the second value/variable/literal in a boolean comparision
 
Constructor Summary
DatatypeUtility()
           
 
Method Summary
static int compareDateObjectsWithoutTime(java.util.Date d1, java.util.Date d2)
          Compares the two date objects with ignoring the time, i.e it compares the dates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LessThan

public static int LessThan
Constant to represent the that the first value/variable/literal is less that the second value/variable/literal in a boolean comparision

EqualTo

public static int EqualTo
Constant to represent the that the first value/variable/literal is equal to the second value/variable/literal in a boolean comparision

GreaterThan

public static int GreaterThan
Constant to represent the that the first value/variable/literal is greater that the second value/variable/literal in a boolean comparision
Constructor Detail

DatatypeUtility

public DatatypeUtility()
Method Detail

compareDateObjectsWithoutTime

public static int compareDateObjectsWithoutTime(java.util.Date d1,
                                                java.util.Date d2)
Compares the two date objects with ignoring the time, i.e it compares the dates. Compares years then months and then the days in the same order. If one of them are unequal then returns the comparision results
Parameters:
d1 - first date object in the comparision
d2 - second date object in the comparision
Returns:
Returns one of the flags for less than, greater than and equals to according to the date objects passed