Access keys

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.

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 quantity is between the minimum and
maximum.

The quantity will be made positive if it is negative.

false will be returned if:

  • The passed-in quantity is null.
  • The passed-in quantity is smaller than the minimum.
  • The passed-in quantity is bigger than the maximum.
Parameters:
quantity:
the quantity
Returns:
true if the quantity is contained by this range else
false

getMaximum

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