Class SimpleTariffRate

java.lang.Object
net.solarnetwork.domain.tariff.SimpleTariffRate
All Implemented Interfaces:
Tariff.Rate

public class SimpleTariffRate extends Object implements Tariff.Rate
Simple implementation of Tariff.Rate.
Since:
1.71
Version:
1.0
Author:
matt
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public String getId()
      Description copied from interface: Tariff.Rate
      Get a unique ID for this rate.

      This is meant to uniquely identify the type of rate, so the description can be localized.

      Specified by:
      getId in interface Tariff.Rate
      Returns:
      a unique ID, never null
    • getDescription

      public String getDescription()
      Description copied from interface: Tariff.Rate
      Get a non-localized description of the rate.
      Specified by:
      getDescription in interface Tariff.Rate
      Returns:
      the description
    • getAmount

      public BigDecimal getAmount()
      Description copied from interface: Tariff.Rate
      Get the rate amount.
      Specified by:
      getAmount in interface Tariff.Rate
      Returns:
      the amount, never null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object