Class FixedRateComputation

  • All Implemented Interfaces:
    RateComputation, Serializable, org.joda.beans.Bean, org.joda.beans.ImmutableBean

    public final class FixedRateComputation
    extends Object
    implements RateComputation, org.joda.beans.ImmutableBean, Serializable
    Defines a known fixed rate of interest.

    An interest rate that is specified in the contract or has subsequently been determined.

    See Also:
    Serialized Form
    • 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​(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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object