Package org.mockserver.matchers
Class Times
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.matchers.Times
-
public class Times extends ObjectWithReflectiveEqualsHashCodeToString
- Author:
- jamesdbloom
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Timesclone()booleandecrement()booleandecrementAndCheckGreaterThanZero()booleanequals(Object o)static Timesexactly(int count)intgetRemainingTimes()booleangreaterThenZero()inthashCode()booleanisUnlimited()static Timesonce()static Timesunlimited()-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode, toString
-
-
-
-
Method Detail
-
unlimited
public static Times unlimited()
-
once
public static Times once()
-
exactly
public static Times exactly(int count)
-
getRemainingTimes
public int getRemainingTimes()
-
isUnlimited
public boolean isUnlimited()
-
greaterThenZero
public boolean greaterThenZero()
-
decrement
public boolean decrement()
-
decrementAndCheckGreaterThanZero
public boolean decrementAndCheckGreaterThanZero()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-
-