Enum DataRecordingPeriod
- java.lang.Object
-
- java.lang.Enum<DataRecordingPeriod>
-
- com.bybit.api.client.domain.market.DataRecordingPeriod
-
- All Implemented Interfaces:
Serializable,Comparable<DataRecordingPeriod>
public enum DataRecordingPeriod extends Enum<DataRecordingPeriod>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIFTEEN_MINUTESFIVE_MINUTESFOUR_DAYSFOUR_HOURSONE_HOURTHIRTY_MINUTES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataRecordingPeriodvalueOf(String name)Returns the enum constant of this type with the specified name.static DataRecordingPeriod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIVE_MINUTES
public static final DataRecordingPeriod FIVE_MINUTES
-
FIFTEEN_MINUTES
public static final DataRecordingPeriod FIFTEEN_MINUTES
-
THIRTY_MINUTES
public static final DataRecordingPeriod THIRTY_MINUTES
-
ONE_HOUR
public static final DataRecordingPeriod ONE_HOUR
-
FOUR_HOURS
public static final DataRecordingPeriod FOUR_HOURS
-
FOUR_DAYS
public static final DataRecordingPeriod FOUR_DAYS
-
-
Method Detail
-
values
public static DataRecordingPeriod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataRecordingPeriod c : DataRecordingPeriod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataRecordingPeriod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-