public class ContractSet
extends java.lang.Object
ObjectContract
objects. Contracts are organized by arity.Modifier and Type | Field and Description |
---|---|
private java.util.List<java.util.List<ObjectContract>> |
contractMap
Each element is a list of all contracts of that arity.
|
Constructor and Description |
---|
ContractSet() |
Modifier and Type | Method and Description |
---|---|
void |
add(ObjectContract contract)
Adds a contract to this set.
|
java.util.List<ObjectContract> |
getWithArity(int arity)
Returns the list of contracts with the given arity.
|
boolean |
isEmpty() |
java.lang.String |
toString() |
private final java.util.List<java.util.List<ObjectContract>> contractMap
public java.util.List<ObjectContract> getWithArity(int arity)
arity
- the aritypublic void add(ObjectContract contract)
contract
- the contractpublic boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object