com.ibm.commerce.giftcenter.rules.validation

Class GiftListRuleValidatorUtil

  • java.lang.Object
    • com.ibm.commerce.giftcenter.rules.validation.GiftListRuleValidatorUtil


  • public class GiftListRuleValidatorUtil
    extends java.lang.Object
    The class provides utility methods for validating gift list rules.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static long getDateDifferenceInDays(java.util.Date date1, java.util.Date date2)
      Returns the difference of two dates in days
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • getDateDifferenceInDays

        public static long getDateDifferenceInDays(java.util.Date date1,
                                                   java.util.Date date2)
        Returns the difference of two dates in days
        Parameters:
        date1 - The first date parameter
        date2 - The second date parameter
        Returns:
        The integer value which represents the difference of the two dates in days