Package randoop.test
Class ContractSet
java.lang.Object
randoop.test.ContractSet
Manages the set of
ObjectContract
objects. Contracts are organized by arity.-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<List<ObjectContract>>
Each element is a list of all contracts of that arity. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ObjectContract contract) Adds a contract to this set.getWithArity
(int arity) Returns the list of contracts with the given arity.boolean
isEmpty()
toString()
-
Field Details
-
contractMap
Each element is a list of all contracts of that arity. For example, the element at index 2 is a list of contracts of arity 2. Used only for containment check.
-
-
Constructor Details
-
ContractSet
public ContractSet()
-
-
Method Details