com.agical.rmock.core.match.multiplicity
Class MultiplicityFactory.LimitableMultiplicity

java.lang.Object
  extended by com.agical.rmock.core.match.multiplicity.impl.MultiplicityImpl
      extended by com.agical.rmock.core.match.multiplicity.MultiplicityFactory.LimitableMultiplicity
All Implemented Interfaces:
Multiplicity, java.lang.Cloneable
Enclosing class:
MultiplicityFactory

public class MultiplicityFactory.LimitableMultiplicity
extends MultiplicityImpl

Extends the multiplicity with a to method, limiting the current multiplicitys max matches. (c) Agical AB 2005

Author:
joakim.ohlrogge

Constructor Summary
MultiplicityFactory.LimitableMultiplicity(int min)
           
 
Method Summary
 Multiplicity to(int max)
          Limits the maximum number of matches this multiplicity can make.
 
Methods inherited from class com.agical.rmock.core.match.multiplicity.impl.MultiplicityImpl
canMatch, clone, equals, getMatchCount, getMax, getMin, hashCode, isSatisfied, match, setMax
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplicityFactory.LimitableMultiplicity

public MultiplicityFactory.LimitableMultiplicity(int min)
Method Detail

to

public Multiplicity to(int max)
Limits the maximum number of matches this multiplicity can make.

Parameters:
max -
Returns:


Copyright © 2005-2008 Agical AB. All Rights Reserved.