public class AlwaysAcceptAttachmentConstraint implements AttachmentConstraint
An interface AttachmentConstraint
where AlwaysAcceptAttachmentConstraint.isSatisfiedBy
always returns true.
Modifier and Type | Field and Description |
---|---|
static AlwaysAcceptAttachmentConstraint |
INSTANCE
An
interface AttachmentConstraint where AlwaysAcceptAttachmentConstraint.isSatisfiedBy always returns true. |
Modifier and Type | Method and Description |
---|---|
boolean |
isSatisfiedBy(Attachment attachment)
Returns whether the given contract attachment can be used with the
interface ContractState associated with this constraint object. |
isSatisfiedBy
public static AlwaysAcceptAttachmentConstraint INSTANCE
An interface AttachmentConstraint
where AlwaysAcceptAttachmentConstraint.isSatisfiedBy
always returns true.
public boolean isSatisfiedBy(Attachment attachment)
Returns whether the given contract attachment can be used with the interface ContractState
associated with this constraint object.
interface ContractState