com.googlecode.kevinarpe.papaya.argument
Class DateTimeArgs

java.lang.Object
  extended by com.googlecode.kevinarpe.papaya.argument.DateTimeArgs

@FullyTested
public final class DateTimeArgs
extends Object

Static methods to check DateTime arguments.

See ObjectArgs for an overview.

Author:
Kevin Connor ARPE (kevinarpe@gmail.com)

Method Summary
static DateTime checkExactValue(DateTime dt, DateTime exactDt, String argName)
          Convenience method to call ComparableArgs.checkExactValue(Comparable, Comparable, String).
static DateTime checkMaxValue(DateTime dt, DateTime maxDt, String argName)
          Convenience method to call ComparableArgs.checkMaxValue(Comparable, Comparable, String).
static DateTime checkMinValue(DateTime dt, DateTime minDt, String argName)
          Convenience method to call ComparableArgs.checkMinValue(Comparable, Comparable, String).
static DateTime checkNotExactValue(DateTime dt, DateTime exactDt, String argName)
          Convenience method to call ComparableArgs.checkNotExactValue(Comparable, Comparable, String).
static DateTime checkValueInsideRange(DateTime ref, DateTime minRangeValue, DateTime maxRangeValue, String argName)
          Convenience method to call ComparableArgs.checkValueInsideRange(Comparable, Comparable, Comparable, String).
static DateTime checkValueOutsideRange(DateTime ref, DateTime minRangeValue, DateTime maxRangeValue, String argName)
          Convenience method to call ComparableArgs.checkValueOutsideRange(Comparable, Comparable, Comparable, String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkValueInsideRange

@FullyTested
public static DateTime checkValueInsideRange(DateTime ref,
                                                         DateTime minRangeValue,
                                                         DateTime maxRangeValue,
                                                         String argName)
Convenience method to call ComparableArgs.checkValueInsideRange(Comparable, Comparable, Comparable, String).

See Also:
checkValueOutsideRange(DateTime, DateTime, DateTime, String), checkMinValue(DateTime, DateTime, String), checkMaxValue(DateTime, DateTime, String), checkExactValue(DateTime, DateTime, String), checkNotExactValue(DateTime, DateTime, String)

checkValueOutsideRange

@FullyTested
public static DateTime checkValueOutsideRange(DateTime ref,
                                                          DateTime minRangeValue,
                                                          DateTime maxRangeValue,
                                                          String argName)
Convenience method to call ComparableArgs.checkValueOutsideRange(Comparable, Comparable, Comparable, String).

See Also:
checkValueInsideRange(DateTime, DateTime, DateTime, String), checkMinValue(DateTime, DateTime, String), checkMaxValue(DateTime, DateTime, String), checkExactValue(DateTime, DateTime, String), checkNotExactValue(DateTime, DateTime, String)

checkMinValue

@FullyTested
public static DateTime checkMinValue(DateTime dt,
                                                 DateTime minDt,
                                                 String argName)
Convenience method to call ComparableArgs.checkMinValue(Comparable, Comparable, String).

See Also:
checkValueInsideRange(DateTime, DateTime, DateTime, String), checkValueOutsideRange(DateTime, DateTime, DateTime, String), checkMaxValue(DateTime, DateTime, String), checkExactValue(DateTime, DateTime, String), checkNotExactValue(DateTime, DateTime, String)

checkMaxValue

@FullyTested
public static DateTime checkMaxValue(DateTime dt,
                                                 DateTime maxDt,
                                                 String argName)
Convenience method to call ComparableArgs.checkMaxValue(Comparable, Comparable, String).

See Also:
checkValueInsideRange(DateTime, DateTime, DateTime, String), checkValueOutsideRange(DateTime, DateTime, DateTime, String), checkMinValue(DateTime, DateTime, String), checkExactValue(DateTime, DateTime, String), checkNotExactValue(DateTime, DateTime, String)

checkExactValue

@FullyTested
public static DateTime checkExactValue(DateTime dt,
                                                   DateTime exactDt,
                                                   String argName)
Convenience method to call ComparableArgs.checkExactValue(Comparable, Comparable, String).

See Also:
checkValueInsideRange(DateTime, DateTime, DateTime, String), checkValueOutsideRange(DateTime, DateTime, DateTime, String), checkMinValue(DateTime, DateTime, String), checkMaxValue(DateTime, DateTime, String), checkNotExactValue(DateTime, DateTime, String)

checkNotExactValue

@FullyTested
public static DateTime checkNotExactValue(DateTime dt,
                                                      DateTime exactDt,
                                                      String argName)
Convenience method to call ComparableArgs.checkNotExactValue(Comparable, Comparable, String).

See Also:
checkValueInsideRange(DateTime, DateTime, DateTime, String), checkValueOutsideRange(DateTime, DateTime, DateTime, String), checkMinValue(DateTime, DateTime, String), checkMaxValue(DateTime, DateTime, String), checkExactValue(DateTime, DateTime, String)


Copyright © 2013-2014. All Rights Reserved.