OpenAPI 1.0

com.aquafold.openapi.random
Interface AQRandomDateVariation

All Superinterfaces:
AQRandomVariation

public interface AQRandomDateVariation
extends AQRandomVariation

This interface represents a change that a Date object could possibly have.

Instances of this interface can be instantiated by one of the following methods:


Method Summary
 Date apply(Date date)
          Returns a date that is the sum of the specified date and a time randomly generated from this object.
 

Method Detail

apply

Date apply(Date date)
           throws Exception
Returns a date that is the sum of the specified date and a time randomly generated from this object. The randomly generated time follows the constraints defined in this object.

Parameters:
date - a date
Returns:
a date which is the sum of the specified date and a randomly generated time.
Throws:
Exception - if the specified date is null

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.