OpenAPI 1.0

com.aquafold.openapi.random
Interface AQRandomNumberVariation

All Superinterfaces:
AQRandomVariation

public interface AQRandomNumberVariation
extends AQRandomVariation

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

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


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

Method Detail

apply

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

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

OpenAPI 1.0


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