Enum Class MarketTimeInterval

java.lang.Object
java.lang.Enum<MarketTimeInterval>
com.bluebell.greenhouse.platform.enums.market.MarketTimeInterval
All Implemented Interfaces:
GenericEnum<MarketTimeInterval>, GenericSymbolizedEnum<MarketTimeInterval>, Serializable, Comparable<MarketTimeInterval>, Constable

public enum MarketTimeInterval extends Enum<MarketTimeInterval> implements GenericSymbolizedEnum<MarketTimeInterval>
Representation of an interval of time for a MarketPrice.
Version:
1.0.2
Author:
Stephen Prizio
  • Enum Constant Details

  • Method Details

    • values

      public static MarketTimeInterval[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MarketTimeInterval valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getForFirstRateDataLabel

      public static MarketTimeInterval getForFirstRateDataLabel(String label)
      Calculates the MarketTimeInterval for a specific label from firstratedata.
      Parameters:
      label - label
      Returns:
      MarketTimeInterval