Package com.restfb
Enum Version
- All Implemented Interfaces:
Serializable,Comparable<Version>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionconvenience enum to provide simple access to the latest supported Graph API Version.Threads API 1.0, according to the documentation, this is the first Threads API Versionconvenience enum to provide simple access to the latest supported Threads API Version.unversiond apiDeprecated.Deprecated.Graph API 20.0, available at least until September 24, 2026Graph API 21.0, available at least until January 21, 2027Graph API 22.0, available at least until May 29, 2027Graph API 23.0, available at least until October 8, 2027Graph API 24.0, available at least until October 2027Graph API 25.0, available at least until July 2028Graph API 25.0, available at least until February 2028 -
Method Summary
Modifier and TypeMethodDescriptionstatic VersiongetVersionFromString(String urlElementStr) converts a String (for example the url parameter) into a Version objectbooleanstatic VersionReturns the enum constant of this type with the specified name.static Version[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNVERSIONED
unversiond api -
VERSION_18_0
Deprecated.Graph API 18.0, available at least until January 23, 2026- Since:
- September 12, 2023
-
VERSION_19_0
Deprecated.Graph API 19.0, available at least until May 21, 2026- Since:
- January 23, 2024
-
VERSION_20_0
Graph API 20.0, available at least until September 24, 2026- Since:
- May 21, 2024
-
VERSION_21_0
Graph API 21.0, available at least until January 21, 2027- Since:
- October 2, 2024
-
VERSION_22_0
Graph API 22.0, available at least until May 29, 2027- Since:
- January 21, 2025
-
VERSION_23_0
Graph API 23.0, available at least until October 8, 2027- Since:
- May 29, 2025
-
VERSION_24_0
Graph API 24.0, available at least until October 2027- Since:
- October 8, 2025
-
VERSION_25_0
Graph API 25.0, available at least until July 2028- Since:
- February 18, 2026
-
VERSION_26_0
Graph API 25.0, available at least until February 2028- Since:
- July 29, 2026
-
LATEST
convenience enum to provide simple access to the latest supported Graph API Version.the current version is Graph API 26.0
-
THREADS_1_0
Threads API 1.0, according to the documentation, this is the first Threads API Version -
THREADS_LATEST
convenience enum to provide simple access to the latest supported Threads API Version.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getUrlElement
-
isUrlElementRequired
-
getVersionFromString
converts a String (for example the url parameter) into a Version object- Parameters:
urlElementStr- String that should- Returns:
- the generated version
-