Maturity

public enum Maturity

The maturity API parameter, specifying the US Treasury bond maturity a TREASURY_YIELD request returns the yield for.

Accepted by com.crazzyghost.alphavantage.economicindicator.request.TreasuryYieldRequest.Builder.

Author

Sylvester Sefa-Yeboah

Since

1.7.0

Entries

Link copied to clipboard

A three-month maturity. Serializes to the wire value "3month".

Link copied to clipboard

A two-year maturity. Serializes to the wire value "2year".

Link copied to clipboard

A five-year maturity. Serializes to the wire value "5year".

Link copied to clipboard

A seven-year maturity. Serializes to the wire value "7year".

Link copied to clipboard

A ten-year maturity. Serializes to the wire value "10year".

Link copied to clipboard

A thirty-year maturity. Serializes to the wire value "30year".

Functions

Link copied to clipboard
public String toString()
Link copied to clipboard
public static Maturity 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.)

Link copied to clipboard
public static Array<Maturity> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.