Enum Class PrimitiveType

java.lang.Object
java.lang.Enum<PrimitiveType>
com.gridgain.cdc.gg9togg8.PrimitiveType
All Implemented Interfaces:
Serializable, Comparable<PrimitiveType>, Constable

public enum PrimitiveType extends Enum<PrimitiveType>
List of basic types for GridGain 9 and GridGain 8.
  • Enum Constant Details

  • Method Details

    • values

      public static PrimitiveType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PrimitiveType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromGg9Type

      public static PrimitiveType fromGg9Type(Class<?> gg9Type)
      Retrieves instance from type that is used in GridGain 9.
      Parameters:
      gg9Type - Type used in GridGain 9.
      Returns:
      Corresponding instance of this enum.
    • fromGg8Type

      public static PrimitiveType fromGg8Type(Class<?> gg8Type)
      Retrieves instance from type that is used in GridGain 8.
      Parameters:
      gg8Type - Type used in GridGain 9.
      Returns:
      Corresponding instance of this enum.
    • gg9Type

      public Class<?> gg9Type()
    • gg8Type

      public Class<?> gg8Type()
    • convertValue

      public <S, R> R convertValue(S src)
      Converts value from GG9 type to GG8 type.
      Type Parameters:
      S - Source type.
      R - Result type.
      Parameters:
      src - Source value.
      Returns:
      Converted value