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

net.corda.core.contracts

## Class AlwaysAcceptAttachmentConstraint

- net.corda.core.contracts.AlwaysAcceptAttachmentConstraint

- All Implemented Interfaces:
    AttachmentConstraint

      public class AlwaysAcceptAttachmentConstraint
      implements AttachmentConstraint

  An `interface AttachmentConstraint` where `isSatisfiedBy` always returns true.

  See Also:
    `interface AttachmentConstraint`, `isSatisfiedBy`

- - ### Field Detail

    - #### INSTANCE

          public static AlwaysAcceptAttachmentConstraint INSTANCE

      An `interface AttachmentConstraint` where `isSatisfiedBy` always returns true.

      See Also:
        `interface AttachmentConstraint`, `isSatisfiedBy`

  - ### Method Detail

    - #### isSatisfiedBy

          public boolean isSatisfiedBy(@NotNull
                                       Attachment attachment)

      Returns whether the given contract attachment can be used with the `interface ContractState` associated with this constraint object.

      See Also:
        `interface ContractState`