Package com.restfb

Enum Version

All Implemented Interfaces:
Serializable, Comparable<Version>, java.lang.constant.Constable

public enum Version extends Enum<Version>
  • Enum Constant Details

    • UNVERSIONED

      public static final Version UNVERSIONED
      unversiond api
    • VERSION_3_1

      @Deprecated public static final Version VERSION_3_1
      Deprecated.
      use VERSION_4_0 or newer
      Graph API 3.1, available until October 23, 2020
      Since:
      July 26, 2018
    • VERSION_3_2

      @Deprecated public static final Version VERSION_3_2
      Deprecated.
      use VERSION_4_0 or newer
      Graph API 3.2, available until April 30, 2021
      Since:
      October 23, 2018
    • VERSION_3_3

      @Deprecated public static final Version VERSION_3_3
      Deprecated.
      use VERSION_4_0 or newer
      Graph API 3.3, available until July 29, 2021
      Since:
      April 30, 2019
    • VERSION_4_0

      public static final Version VERSION_4_0
      Graph API 4.0, available until October 29, 2021
      Since:
      July 29, 2019
    • VERSION_5_0

      public static final Version VERSION_5_0
      Graph API 5.0, available until February 3rd, 2022
      Since:
      October 29, 2019
    • VERSION_6_0

      public static final Version VERSION_6_0
      Graph API 6.0, available until May 5th, 2022
      Since:
      February 3rd, 2020
    • VERSION_7_0

      public static final Version VERSION_7_0
      Graph API 7.0, available until August 4th, 2022
      Since:
      May 5th, 2020
    • VERSION_8_0

      public static final Version VERSION_8_0
      Graph API 8.0, available until November 10th, 2022
      Since:
      August 4th, 2020
    • VERSION_9_0

      public static final Version VERSION_9_0
      Graph API 9.0, available until February 23, 2023
      Since:
      November 10th, 2020
    • VERSION_10_0

      public static final Version VERSION_10_0
      Graph API 10.0, available until June 8th, 2023
      Since:
      February 23th, 2021
    • VERSION_11_0

      public static final Version VERSION_11_0
      Graph API 11.0, available at least until September 14, 2023
      Since:
      June 8th, 2021
    • VERSION_12_0

      public static final Version VERSION_12_0
      Graph API 12.0, available at least until September 2023
      Since:
      September 14th, 2021
    • LATEST

      public static final Version LATEST
      convenience enum to provide simple access to the latest supported Graph API Version.

      the current version is Graph API 12.0

  • Method Details

    • values

      public static Version[] 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

      public static Version 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 name
      NullPointerException - if the argument is null
    • getUrlElement

    • isUrlElementRequired

      public boolean isUrlElementRequired()
    • getVersionFromString

      public static Version getVersionFromString(String urlElementStr)
      converts a String (for example the url parameter) into a Version object
      Parameters:
      urlElementStr - String that should
      Returns:
      the generated version