Requirements
Keywords: net.corda.core.contracts.Requirements class
Date: 2023-09-18

net.corda.core.contracts

## Class Requirements

- net.corda.core.contracts.Requirements

-     public class Requirements

  Defines a simple domain specific language for the specification of financial contracts. Currently covers:

  - Some utilities for working with commands.

  - A simple language extension for specifying requirements in English, along with logic to enforce them.

- - ### Field Detail

    - #### INSTANCE

          public static Requirements INSTANCE

      Defines a simple domain specific language for the specification of financial contracts. Currently covers:

      - Some utilities for working with commands.

      - A simple language extension for specifying requirements in English, along with logic to enforce them.

  - ### Method Detail

    - #### using

          public void using(@NotNull
                            java.lang.String $this$using,
                            boolean expr)

      Throws IllegalArgumentException if the given expression evaluates to false.

      See Also:
        IllegalArgumentException