Package net.solarnetwork.domain.tariff
Interface Tariff.Rate
- All Known Implementing Classes:
SimpleTariffRate
- Enclosing interface:
- Tariff
public static interface Tariff.Rate
A tariff rate.
-
Method Summary
Modifier and TypeMethodDescriptionGet the rate amount.Get a non-localized description of the rate.getId()Get a unique ID for this rate.
-
Method Details
-
getId
String getId()Get a unique ID for this rate.This is meant to uniquely identify the type of rate, so the description can be localized.
- Returns:
- a unique ID, never null
-
getDescription
String getDescription()Get a non-localized description of the rate.- Returns:
- the description
-
getAmount
BigDecimal getAmount()Get the rate amount.- Returns:
- the amount, never null
-