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

net.corda.core.contracts

## Class Structures

- net.corda.core.contracts.Structures

-     public class Structures

- - ### Field Detail

    - #### MAX_ISSUER_REF_SIZE

          public static int MAX_ISSUER_REF_SIZE

      The maximum permissible size of an issuer reference.

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### Structures

          public Structures()

  - ### Method Detail

    - #### withoutIssuer

          @NotNull
          public static <T> Amount<T> withoutIssuer(@NotNull
                                                             Amount<net.corda.core.contracts.Issued> $this$withoutIssuer)

      Strips the issuer and returns an `class Amount` of the raw token directly. This is useful when you are mixing code that cares about specific issuers with code that will accept any, or which is imposing issuer constraints via some other mechanism and the additional type safety is not wanted.

      See Also:
        `class Amount`

    - #### hash

          @NotNull
          public static SecureHash hash(@NotNull
                                                 ContractState $this$hash)

      Returns the SHA-256 hash of the serialised contents of this state (not cached!)

    - #### hash

          @NotNull
          public static SecureHash hash(@NotNull
                                                 ContractState $this$hash,
                                                 @NotNull
                                                 java.lang.String algorithm)

      Returns the hash of the serialised contents of this state (not cached!)