Tenor
Keywords: net.corda.finance.contracts.Tenor class
Date: 2023-09-18

net.corda.finance.contracts

## Class Tenor

- net.corda.finance.contracts.Tenor

-     public class Tenor

  Placeholder class for the Tenor datatype - which is a standardised duration of time until maturity

- - ### Constructor Detail

    - #### Tenor

          public Tenor(@NotNull
                       java.lang.String name)

      Placeholder class for the Tenor datatype - which is a standardised duration of time until maturity

  - ### Method Detail

    - #### daysToMaturity

          public int daysToMaturity(@NotNull
                                    java.time.LocalDate startDate,
                                    @NotNull
                                    BusinessCalendar calendar)

    - #### toString

          @NotNull
          public java.lang.String toString()

    - #### getName

          @NotNull
          public java.lang.String getName()

    - #### component1

          @NotNull
          public java.lang.String component1()

    - #### copy

          @NotNull
          public Tenor copy(@NotNull
                                     java.lang.String name)

      Placeholder class for the Tenor datatype - which is a standardised duration of time until maturity

    - #### hashCode

          public int hashCode()

      Placeholder class for the Tenor datatype - which is a standardised duration of time until maturity

    - #### equals

          public boolean equals(@Nullable
                                java.lang.Object p)

      Placeholder class for the Tenor datatype - which is a standardised duration of time until maturity