Enum DividendRange
- java.lang.Object
-
- java.lang.Enum<DividendRange>
-
- pl.zankowski.iextrading4j.client.rest.request.stocks.DividendRange
-
- All Implemented Interfaces:
Serializable
,Comparable<DividendRange>
public enum DividendRange extends Enum<DividendRange>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIVE_YEARS
NEXT
ONE_MONTH
ONE_YEAR
SIX_MONTHS
THREE_MONTHS
TWO_YEARS
YEAR_TO_DATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
static DividendRange
valueOf(String name)
Returns the enum constant of this type with the specified name.static DividendRange[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_MONTH
public static final DividendRange ONE_MONTH
-
THREE_MONTHS
public static final DividendRange THREE_MONTHS
-
SIX_MONTHS
public static final DividendRange SIX_MONTHS
-
YEAR_TO_DATE
public static final DividendRange YEAR_TO_DATE
-
ONE_YEAR
public static final DividendRange ONE_YEAR
-
TWO_YEARS
public static final DividendRange TWO_YEARS
-
FIVE_YEARS
public static final DividendRange FIVE_YEARS
-
NEXT
public static final DividendRange NEXT
-
-
Method Detail
-
values
public static DividendRange[] 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 (DividendRange c : DividendRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DividendRange 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
-
getCode
public String getCode()
-
-