Class GainDTO


  • public final class GainDTO
    extends Object
    Gain.
    • Field Detail

      • ZERO

        public static final GainDTO ZERO
        Zero constant.
    • Method Detail

      • getNetAmount

        public CurrencyAmountDTO getNetAmount()
        Getter netAmount.
        Returns:
        netAmount
      • isInferiorTo

        public boolean isInferiorTo​(GainDTO other)
        Returns true if the current gain is inferior to the gain passed as a parameter.
        Parameters:
        other - other gain
        Returns:
        true if this gain is inferior to the gain passed as a parameter
      • isSuperiorTo

        public boolean isSuperiorTo​(GainDTO other)
        Returns true if the current gain is superior to the gain passed as a parameter.
        Parameters:
        other - other gain
        Returns:
        true if this gain is superior to the gain passed as a parameter
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • getPercentage

        public double getPercentage()
        Gain made (percentage).