Class FixedRateComputation

    • Method Detail

      • of

        public static FixedRateComputation of​(double rate)
        Creates an instance.
        Parameters:
        rate - the fixed rate
        Returns:
        the fixed rate computation
      • collectIndices

        public void collectIndices​(com.google.common.collect.ImmutableSet.Builder<Index> builder)
        Description copied from interface: RateComputation
        Collects all the indices referred to by this computation.

        A computation will typically refer to one index, such as 'GBP-LIBOR-3M'. Each index that is referred to must be added to the specified builder.

        Specified by:
        collectIndices in interface RateComputation
        Parameters:
        builder - the builder to use
      • meta

        public static FixedRateComputation.Meta meta()
        The meta-bean for FixedRateComputation.
        Returns:
        the meta-bean, not null
      • getRate

        public double getRate()
        Gets the fixed rate to be paid. A 5% rate will be expressed as 0.05.
        Returns:
        the value of the property
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object