> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateAnd.ToInterface

> Parent of all generated CreateAnd classes within interfaces. These need to pass both the template and interface ID.

## CreateAnd.ToInterface - stable

Upstream docs: [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/CreateAnd.ToInterface.html)

**Signature**

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
public abstract static class CreateAnd.ToInterface extends CreateAnd
```

**Members**

| Docs                                                                                                                                                                                                                                      | Member                                              | Introduced | Deprecated | Removed |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------- | ---------- | ------- |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/CreateAnd.ToInterface.html#%3Cinit%3E%28com.daml.ledger.javaapi.data.codegen.ContractCompanion,com.daml.ledger.javaapi.data.Template%29) | `ToInterface(ContractCompanion<?, ?, ?>, Template)` | `3.4.8`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/CreateAnd.ToInterface.html#makeExerciseCmd%28com.daml.ledger.javaapi.data.codegen.Choice,A%29)                                           | `makeExerciseCmd(Choice<?, ? super A, R>, A)`       | `3.4.8`    | -          | -       |
