MethodCallRange
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.test.mock.MethodCallRange |
| File last modified: | Saturday, 28 May 2005, 12:23:16 |
MethodCallRange represents the number of expected method calls.Summary
Constructor
MethodCallRange
function MethodCallRange (
)
Class properties
DEFAULT_MAXIMUM
static DEFAULT_MAXIMUM:Number = Number.POSITIVE_INFINITY
(read,write)
The maximum that is used if none has been specified.
DEFAULT_MINIMUM
static DEFAULT_MINIMUM:Number = 0
(read,write)
The minimum that is used if none has been specified.
Instance methods
contains
function contains (
quantity:Number) : Boolean
Checks whether the passed-in
maximum.
quantity is between the minimum andmaximum.
The quantity will be made positive if it is negative.
false will be returned if:
- The passed-in
quantityisnull. - The passed-in
quantityis smaller than the minimum. - The passed-in
quantityis bigger than the maximum.
Parameters:
quantity:
the quantity
Returns:
true if the quantity is contained by this range elsefalsegetMaximum
function getMaximum (
Void) : Number
Returns the maximum of this range.
Returns:
the set maximum
getMinimum
function getMinimum (
Void) : Number
Returns the minimum of this range.
Returns:
the set minimum
toString
function toString (
) : String
Returns the string representation of this range.
Returns:
the string representation of this range
Overrides: